]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/mountutils.h: fix LSMT_ROOT definition master
authorShubham Chakraborty <chakrabortyshubham66@gmail.com>
Sat, 30 May 2026 09:49:32 +0000 (11:49 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Jun 2026 12:08:06 +0000 (14:08 +0200)
Commit
ded434a63f3eee7fd7805b18d6c9bb912016c3c8 ("include/mount-api-utils:
add statmount and listmount") introduce a fallback definition for the
LSMT_ROOT defined, but a small typo makes this fallback definition
ineffective:

 #ifdef LSMT_ROOT
 # define LSMT_ROOT ...
 #endif

Should obviously have been:

 #ifndef LSMT_ROOT
 # define LSMT_ROOT ...
 #endif

Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
[Thomas: improve commit message]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
include/mountutils.h

index 9eba451d408e87af1621154591529a9c8970e780..057a29d900c14dd3d532ab0c6953430da27395ad 100644 (file)
@@ -371,7 +371,7 @@ struct ul_statmount {
 /*
  * Special @mnt_id values that can be passed to listmount
  */
-#ifdef LSMT_ROOT
+#ifndef LSMT_ROOT
 # define LSMT_ROOT              0xffffffffffffffff    /* root mount */
 #endif