diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1996-10-17 13:43:58 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1996-10-17 13:43:58 +0000 |
commit | 590b04e0057fe4615a80a60917911727bd24830f (patch) | |
tree | 0221c1a5c0f254d960d7d0538ba01d8d66dbead8 | |
parent | b4c9d8eaf5067c541859b8f76f32aa1e0a75e659 (diff) |
Notes
-rw-r--r-- | lib/libskey/skey_getpass.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libskey/skey_getpass.c b/lib/libskey/skey_getpass.c index e8d50d380ad9..cc2fcc327d74 100644 --- a/lib/libskey/skey_getpass.c +++ b/lib/libskey/skey_getpass.c @@ -11,7 +11,7 @@ int pwok; { static char buf[128]; struct skey skey; - char *pass; + char *pass = ""; char *username = pwd ? pwd->pw_name : "nope"; int sflag; @@ -20,8 +20,11 @@ int pwok; if (!sflag) printf("%s\n", buf); - if (!pwok) + if (!pwok) { printf("(s/key required)\n"); + if (sflag) + return (pass); + } pass = getpass(prompt); |