diff options
author | David Nugent <davidn@FreeBSD.org> | 1997-05-24 10:41:49 +0000 |
---|---|---|
committer | David Nugent <davidn@FreeBSD.org> | 1997-05-24 10:41:49 +0000 |
commit | 13360c156dfc25dac895009067cd0b9427151955 (patch) | |
tree | df30974f3ecbc22d38e6dfef1086ce181b9132ac /pw | |
parent | 33d828d376dc69485f51c74aa12d0972585de2be (diff) | |
download | pw-darwin-13360c156dfc25dac895009067cd0b9427151955.tar.gz pw-darwin-13360c156dfc25dac895009067cd0b9427151955.tar.zst pw-darwin-13360c156dfc25dac895009067cd0b9427151955.zip |
Fixes skeleton directory test-it-is-a-directory logic.
PR: 3666
Reviewed by:
Submitted by: iaint@css.tuu.utas.edu.au
Obtained from:
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pw_user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c index 02aa7d0..b478c7b 100644 --- a/pw/pw_user.c +++ b/pw/pw_user.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pw_user.c,v 1.18 1997/03/11 14:11:43 ache Exp $ + * $Id: pw_user.c,v 1.19 1997/03/24 15:09:41 ache Exp $ */ #include <unistd.h> @@ -235,7 +235,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args) cnf->groups[i++] = NULL; } if ((arg = getarg(args, 'k')) != NULL) { - if (stat(cnf->dotdir = arg->val, &st) == -1 || S_ISDIR(st.st_mode)) + if (stat(cnf->dotdir = arg->val, &st) == -1 || !S_ISDIR(st.st_mode)) cmderr(EX_OSFILE, "skeleton `%s' is not a directory or does not exist\n", cnf->dotdir); } if ((arg = getarg(args, 's')) != NULL) |