svn commit: r285440 - head/usr.sbin/pw

Baptiste Daroussin bapt at FreeBSD.org
Mon Jul 13 09:07:39 UTC 2015


Author: bapt
Date: Mon Jul 13 09:07:38 2015
New Revision: 285440
URL: https://svnweb.freebsd.org/changeset/base/285440

Log:
  Fix logic of check duplicates that has been inverted

Modified:
  head/usr.sbin/pw/pw.c

Modified: head/usr.sbin/pw/pw.c
==============================================================================
--- head/usr.sbin/pw/pw.c	Mon Jul 13 08:38:21 2015	(r285439)
+++ head/usr.sbin/pw/pw.c	Mon Jul 13 09:07:38 2015	(r285440)
@@ -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;


More information about the svn-src-all mailing list