]> 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)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Jul 2022 15:55:05 +0000 (17:55 +0200)
misc-utils/hardlink.c

index f77ee92628ad44125bdd0d1a1a21cbec1836e861..b7eb342340e616acac6272149278839af8735ef9 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,