diff options
author | bapt <bapt@FreeBSD.org> | 2012-10-29 18:06:09 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-10-29 18:06:09 +0000 |
commit | dabdba130671b50d0b296dc9d7856b4c474a97a2 (patch) | |
tree | 9f950154af2bcd331a5b02ed6eea812cd61bcb21 /lib/libutil/pw_util.c | |
parent | a43d540d9efdfd22157e434662f6be55d1437f32 (diff) | |
download | FreeBSD-src-dabdba130671b50d0b296dc9d7856b4c474a97a2.zip FreeBSD-src-dabdba130671b50d0b296dc9d7856b4c474a97a2.tar.gz |
backout r242319, racy and not done in the right place
Reported by: Garrett Cooper <yanegomi@gmail.com>
Diffstat (limited to 'lib/libutil/pw_util.c')
-rw-r--r-- | lib/libutil/pw_util.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c index 6013e6d..4bf3001 100644 --- a/lib/libutil/pw_util.c +++ b/lib/libutil/pw_util.c @@ -96,7 +96,6 @@ pw_init(const char *dir, const char *master) #if 0 struct rlimit rlim; #endif - struct stat st; if (dir == NULL) { strcpy(passwd_dir, _PATH_ETC); @@ -124,14 +123,6 @@ pw_init(const char *dir, const char *master) strcpy(masterpasswd, master); } - if (stat(masterpasswd, &st) == -1) - return (-1); - - if (S_ISDIR(st.st_mode)) { - errno = EISDIR; - return (-1); - } - /* * The code that follows is extremely disruptive to the calling * process, and is therefore disabled until someone can conceive |