]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
change the default comparison method on Mac OS to suppress a warning that's going...
authorDavid Cantrell <david@cantrell.org.uk>
Thu, 9 Jun 2022 18:13:01 +0000 (19:13 +0100)
committerDavid Cantrell <david@cantrell.org.uk>
Thu, 9 Jun 2022 18:14:31 +0000 (19:14 +0100)
misc-utils/hardlink.c

index 5c3cfd64d80f26917f94121827cf85ffe8eac520..b1eefb9e48783f259d2e45d383454e1daf7ec93c 100644 (file)
@@ -186,7 +186,11 @@ static struct options {
        size_t cache_size;
 } opts = {
        /* default setting */
+#ifdef __APPLE__
+       .method = "memcmp",
+#else
        .method = "sha256",
+#endif
        .respect_mode = TRUE,
        .respect_owner = TRUE,
        .respect_time = TRUE,