]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsck.cramfs: fix macro usage
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 25 Feb 2020 12:29:08 +0000 (13:29 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 10 Mar 2020 09:55:01 +0000 (10:55 +0100)
Autotoolz does not define HAVE_LCHOWN when the condition is false,
so it is appropriate to use #ifdef/#ifndef as everywhere else.

Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/fsck.cramfs.c

index a8199518090382d103853075b86bbc0290e99b36..3a43dd7b913ce2f93ffb590def523fa47b65aa66 100644 (file)
@@ -368,7 +368,7 @@ static int uncompress_block(void *src, size_t len)
        return stream.total_out;
 }
 
-#if !HAVE_LCHOWN
+#ifndef HAVE_LCHOWN
 #define lchown chown
 #endif