summaryrefslogtreecommitdiff
path: root/libc/pwd_grp/getpwuid.c
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2002-01-17 06:26:05 +0000
committerDavid McCullough <davidm@snapgear.com>2002-01-17 06:26:05 +0000
commit23457259675d4a21f6840a30e2b41014540eab2d (patch)
tree1e29e4b02bd95566e6aea0205d4e8b564c5ce853 /libc/pwd_grp/getpwuid.c
parent47e0a8060499c822772437a3ca1765297857c131 (diff)
* Added /etc/shadow support (Config selectable)
* Moved some file paths from code into <paths.h>
Diffstat (limited to 'libc/pwd_grp/getpwuid.c')
-rw-r--r--libc/pwd_grp/getpwuid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/pwd_grp/getpwuid.c b/libc/pwd_grp/getpwuid.c
index 101d668ae..4d6d60ee8 100644
--- a/libc/pwd_grp/getpwuid.c
+++ b/libc/pwd_grp/getpwuid.c
@@ -22,9 +22,9 @@
#include <unistd.h>
#include <fcntl.h>
#include <pwd.h>
+#include <paths.h>
#include "config.h"
-
#define PWD_BUFFER_SIZE 256
/* file descriptor for the password file currently open */
@@ -36,7 +36,7 @@ int getpwuid_r (uid_t uid, struct passwd *password,
{
int passwd_fd;
- 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)