]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/pw.c
Fix logic of check duplicates that has been inverted
[pw-darwin.git] / pw / pw.c
diff --git a/pw/pw.c b/pw/pw.c
index d81cfb007af67f09cea25f9105af3e45fda0f80d..c5427b4d670ea951bbfb22d5e3f7b338583d377e 100644 (file)
--- a/pw/pw.c
+++ b/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;