auth/userpasswd: remove factotum-bug work-around from 2002, cruft (thanks ori)

This commit is contained in:
cinap_lenrek 2024-12-25 17:08:34 +00:00
parent 21731dd45e
commit e05e30eaca

View file

@ -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);
} }