Avoid creating a file called --version.
authorLove Hörnquist Åstrand <lha@kth.se>
Fri, 20 Oct 2006 20:33:58 +0000 (20:33 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Fri, 20 Oct 2006 20:33:58 +0000 (20:33 +0000)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18703 ec53bebd-3082-4978-b11e-865c3cabbd6b

include/bits.c
include/make_crypto.c
lib/vers/make-print-version.c

index 61797fe2d71dfbb80c1197813dbde81272af0d63..a54cea5a35898a7f87c9d3134b1236e41058e6ca 100644 (file)
@@ -114,7 +114,7 @@ int main(int argc, char **argv)
     int flag;
     const char *fn, *hb;
     
-    if (argc > 1 && strcmp(argv[1], "--version")) {
+    if (argc > 1 && strcmp(argv[1], "--version") == 0) {
        printf("some version");
        return 0;
     }
index 85f9cda9867511016eb1e9de6e8e1000b3737f7c..e65a257a67952de93da39deedf674f45283c4a76 100644 (file)
@@ -49,7 +49,7 @@ main(int argc, char **argv)
        fprintf(stderr, "Usage: make_crypto file\n");
        exit(1);
     }
-    if (strcmp(argv[1], "--version")) {
+    if (strcmp(argv[1], "--version") == 0) {
        printf("some version");
        return 0;
     }
index 0102bcc5ceff38cf0a00c5e9b7b327d08e5b023e..b20969d140833026b8ef74452fdfa77fe251b4a5 100644 (file)
@@ -52,7 +52,7 @@ main(int argc, char **argv)
     FILE *f;
     if(argc != 2)
        return 1;
-    if (strcmp(argv[1], "--version")) {
+    if (strcmp(argv[1], "--version") == 0) {
        printf("some version");
        return 0;
     }