From: Cole Robinson Date: Wed, 24 Feb 2010 19:19:28 +0000 (-0500) Subject: Use standard spacing for user/pass prompt X-Git-Tag: v0.7.7~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ac0334ebd1ffdb7391288aaafdd8e3f7bc32d57;p=thirdparty%2Flibvirt.git Use standard spacing for user/pass prompt Kind of minor, but it annoys me that the default auth callback doesn't put a space between the prompt and the input, like a typical terminal, ssh, etc. This patch changes the current prompt: Please enter your authentication name:myuser to Please enter your authentication name: myuser --- diff --git a/src/libvirt.c b/src/libvirt.c index be1766880f..9d50c92a9f 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -159,7 +159,7 @@ static int virConnectAuthCallbackDefault(virConnectCredentialPtr cred, case VIR_CRED_AUTHNAME: case VIR_CRED_ECHOPROMPT: case VIR_CRED_REALM: - if (printf("%s:", cred[i].prompt) < 0) + if (printf("%s: ", cred[i].prompt) < 0) return -1; if (fflush(stdout) != 0) return -1; @@ -178,7 +178,7 @@ static int virConnectAuthCallbackDefault(virConnectCredentialPtr cred, case VIR_CRED_PASSPHRASE: case VIR_CRED_NOECHOPROMPT: - if (printf("%s:", cred[i].prompt) < 0) + if (printf("%s: ", cred[i].prompt) < 0) return -1; if (fflush(stdout) != 0) return -1;