summaryrefslogtreecommitdiff
path: root/libpwdgrp/shadow.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpwdgrp/shadow.c')
-rw-r--r--libpwdgrp/shadow.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpwdgrp/shadow.c b/libpwdgrp/shadow.c
index f3d6242..3a9c4b8 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");
}
}