mirror of
https://github.com/sheumann/hush.git
synced 2024-10-29 20:27:40 +00:00
Cleaned up error handling and uses of TRUE/FALSE.
This commit is contained in:
parent
97d2612566
commit
ac1169b20f
@ -33,8 +33,7 @@ extern int logname_main(int argc, char **argv)
|
|||||||
my_getpwuid(user, geteuid());
|
my_getpwuid(user, geteuid());
|
||||||
if (user) {
|
if (user) {
|
||||||
puts(user);
|
puts(user);
|
||||||
exit(TRUE);
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
errorMsg("no login name\n");
|
fatalError("no login name\n");
|
||||||
return(FALSE);
|
|
||||||
}
|
}
|
||||||
|
@ -33,8 +33,7 @@ extern int logname_main(int argc, char **argv)
|
|||||||
my_getpwuid(user, geteuid());
|
my_getpwuid(user, geteuid());
|
||||||
if (user) {
|
if (user) {
|
||||||
puts(user);
|
puts(user);
|
||||||
exit(TRUE);
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
errorMsg("no login name\n");
|
fatalError("no login name\n");
|
||||||
return(FALSE);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user