]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r6412: Add fflush(stdout) after displaying username prompt in smbsh if
authorTim Potter <tpot@samba.org>
Thu, 21 Apr 2005 05:09:05 +0000 (05:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:40 +0000 (10:56 -0500)
username not specified on command line.  Bugzilla 2611.

source/smbwrapper/smbsh.c

index 7a2b8e09d7a2591fd4b6f478a7659f31cfc20fd2..8c9d971bbe266288b31b411dc3b2b14e8daa3cca 100644 (file)
@@ -83,6 +83,7 @@ int main(int argc, char *argv[])
 
        if (!smbw_getshared("USER")) {
                printf("Username: ");
+               fflush(stdout);
                u = fgets_slash(line, sizeof(line)-1, x_stdin);
                smbw_setshared("USER", u);
        }