From 23457259675d4a21f6840a30e2b41014540eab2d Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 17 Jan 2002 06:26:05 +0000 Subject: * Added /etc/shadow support (Config selectable) * Moved some file paths from code into --- libc/pwd_grp/getpwnam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/pwd_grp/getpwnam.c') diff --git a/libc/pwd_grp/getpwnam.c b/libc/pwd_grp/getpwnam.c index f5ad9ca1d..36f6f0942 100644 --- a/libc/pwd_grp/getpwnam.c +++ b/libc/pwd_grp/getpwnam.c @@ -23,9 +23,9 @@ #include #include #include +#include #include "config.h" - #define PWD_BUFFER_SIZE 256 /* file descriptor for the password file currently open */ @@ -43,7 +43,7 @@ int getpwnam_r (const char *name, struct passwd *password, return -1; } - if ((passwd_fd = open("/etc/passwd", O_RDONLY)) < 0) + if ((passwd_fd = open(_PATH_PASSWD, O_RDONLY)) < 0) return -1; while (__getpwent_r(password, buff, buflen, passwd_fd) != -1) -- cgit v1.2.3