[PATCH] include/mountutils.h: fix LSMT_ROOT definition
Thomas Petazzoni <[email protected]> Sat, 30 May 2026 11:49:32 +0200
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
From: Shubham Chakraborty <[email protected]> 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 <[email protected]> [Thomas: improve commit message] Signed-off-by: Thomas Petazzoni <[email protected]> --- include/mountutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mountutils.h b/include/mountutils.h index 9eba451d4..057a29d90 100644 --- a/include/mountutils.h +++ b/include/mountutils.h @@ -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 -- 2.54.0