]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - lib/swapprober.c
Merge branch 'uuid-time64_t' of https://github.com/thkukuk/util-linux
[thirdparty/util-linux.git] / lib / swapprober.c
index 5a4b112e15cbb4ac628e570519632bd368a866bb..594496f2529cc0b9616bbfc5bfb631f13520698d 100644 (file)
@@ -1,4 +1,9 @@
-
+/*
+ * No copyright is claimed.  This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ */
 #include "c.h"
 #include "nls.h"
 
@@ -37,7 +42,7 @@ blkid_probe get_swap_prober(const char *devname)
                /* Only the SWAPSPACE2 is supported. */
                if (blkid_probe_lookup_value(pr, "VERSION", &version, NULL) == 0
                    && version
-                   && strcmp(version, stringify_value(SWAP_VERSION)))
+                   && strcmp(version, stringify_value(SWAP_VERSION)) != 0)
                        warnx(_("%s: unsupported swap version '%s'"),
                                                devname, version);
                else