mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 04:13:39 +00:00
If 1) regular Unix passwords not permitted and 2) skey database
for this user not activated, there no correct password exist, so don't bother ask for it and return "" immediately
This commit is contained in:
parent
b4c9d8eaf5
commit
590b04e005
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18980
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user