mirror of
https://github.com/sheumann/hush.git
synced 2025-01-20 05:30:25 +00:00
Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow".
Change fopen to bb_xfopen
This commit is contained in:
parent
1c25ba9de1
commit
fd10c70521
@ -54,8 +54,7 @@ void setspent(void)
|
|||||||
if (shadow) {
|
if (shadow) {
|
||||||
rewind(shadow);
|
rewind(shadow);
|
||||||
} else {
|
} else {
|
||||||
if ((shadow = fopen("/etc/shadow", "r")) == NULL)
|
shadow == bb_xfopen(SHADOW_FILE, "r");
|
||||||
bb_perror_msg_and_die("/etc/shadow");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user