mirror of https://github.com/mirror/busybox.git
Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow".
Change fopen to bb_xfopen1_00_stable_10817
parent
1c25ba9de1
commit
fd10c70521
|
@ -54,8 +54,7 @@ void setspent(void)
|
|||
if (shadow) {
|
||||
rewind(shadow);
|
||||
} else {
|
||||
if ((shadow = fopen("/etc/shadow", "r")) == NULL)
|
||||
bb_perror_msg_and_die("/etc/shadow");
|
||||
shadow == bb_xfopen(SHADOW_FILE, "r");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue