Code

only ask for password once
authorLennart Poettering <lennart@poettering.net>
Wed, 1 Mar 2006 01:49:25 +0000 (01:49 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 1 Mar 2006 01:49:25 +0000 (01:49 +0000)
git-svn-id: file:///home/lennart/svn/public/fusedav/trunk@11 e35a362c-bbd6-0310-a59f-a4efcb1729c4

src/session.c

index 60b1fd4e4431ef41f1615a15c1b01468475f3923..febd9b4dc1dbb59bffdaec784d2c3f63eac68ac6 100644 (file)
@@ -105,7 +105,8 @@ static int ne_auth_creds_cb(__unused void *userdata, const char *realm, int atte
         username = password = NULL;
     }
 
-    fprintf(stderr, "Realm '%s' requires authentication.\n", realm);
+    if (!username || !password)
+        fprintf(stderr, "Realm '%s' requires authentication.\n", realm);
     
     if (!username)
         username = ask_user("Username", 0);