mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
auth/userpasswd: remove factotum-bug work-around from 2002, cruft (thanks ori)
This commit is contained in:
parent
21731dd45e
commit
e05e30eaca
1 changed files with 2 additions and 4 deletions
|
@ -22,13 +22,11 @@ main(int argc, char **argv)
|
||||||
if(argc != 1)
|
if(argc != 1)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
|
quotefmtinstall();
|
||||||
up = auth_getuserpasswd(auth_getkey, "proto=pass %s", argv[0]);
|
up = auth_getuserpasswd(auth_getkey, "proto=pass %s", argv[0]);
|
||||||
if(up == nil) /* bug in factotum, fixed but need to reboot servers -rsc, 2/10/2002 */
|
|
||||||
up = auth_getuserpasswd(nil, "proto=pass %s", argv[0]);
|
|
||||||
if(up == nil)
|
if(up == nil)
|
||||||
sysfatal("getuserpasswd: %r");
|
sysfatal("getuserpasswd: %r");
|
||||||
|
|
||||||
quotefmtinstall();
|
|
||||||
print("%s\n%s\n", up->user, up->passwd);
|
print("%s\n%s\n", up->user, up->passwd);
|
||||||
exits(0);
|
exits(nil);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue