diff options
Diffstat (limited to 'libpwdgrp')
-rw-r--r-- | libpwdgrp/shadow.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libpwdgrp/shadow.c b/libpwdgrp/shadow.c index f3d624213..3a9c4b8d4 100644 --- a/libpwdgrp/shadow.c +++ b/libpwdgrp/shadow.c @@ -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"); } } |