From fd10c70521203bfbb5d87a2e66048ffab1f13c4c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 26 Jun 2003 08:53:49 +0000 Subject: Per patch from Nick Fedchik, use SHADOW_FILE, not "/etc/shadow". Change fopen to bb_xfopen --- libpwdgrp/shadow.c | 3 +-- 1 file changed, 1 insertion(+), 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"); } } -- cgit v1.2.3