From: Lennart Poettering Date: Wed, 1 Mar 2006 01:49:25 +0000 (+0000) Subject: only ask for password once X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e631ca044c2d333ae039a22c590a3e00bb22db9c;p=fusedav.git only ask for password once git-svn-id: file:///home/lennart/svn/public/fusedav/trunk@11 e35a362c-bbd6-0310-a59f-a4efcb1729c4 --- diff --git a/src/session.c b/src/session.c index 60b1fd4..febd9b4 100644 --- a/src/session.c +++ b/src/session.c @@ -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);