diff options
author | bapt <bapt@FreeBSD.org> | 2015-07-13 09:07:38 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-07-13 09:07:38 +0000 |
commit | 7f2e5a63d2132ef339a5d0bc30c062c1aa1ad798 (patch) | |
tree | cbf534a6f1a18498028455d152c208f34cbad4e4 /usr.sbin/pw/pw.c | |
parent | 054d3d8bb0cb8e7172a59d59cd911149cdb7e84c (diff) | |
download | FreeBSD-src-7f2e5a63d2132ef339a5d0bc30c062c1aa1ad798.zip FreeBSD-src-7f2e5a63d2132ef339a5d0bc30c062c1aa1ad798.tar.gz |
Fix logic of check duplicates that has been inverted
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r-- | usr.sbin/pw/pw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index d81cfb0..c5427b4 100644 --- a/usr.sbin/pw/pw.c +++ b/usr.sbin/pw/pw.c @@ -139,6 +139,7 @@ main(int argc, char *argv[]) strlcpy(conf.rootdir, "/", sizeof(conf.rootdir)); strlcpy(conf.etcpath, _PATH_PWD, sizeof(conf.etcpath)); conf.fd = -1; + conf.checkduplicate = false; LIST_INIT(&arglist); @@ -325,7 +326,7 @@ main(int argc, char *argv[]) "descriptor or '-'"); break; case 'o': - conf.checkduplicate = true; + conf.checkduplicate = false; break; case 'q': conf.quiet = true; |