git: 49b4137da6ea - main - chflags: Alias nocache to noucache for consistency

From: Alexander Ziaee <ziaee_at_FreeBSD.org>
Date: Sun, 13 Sep 2026 11:43:19 UTC
The branch main has been updated by ziaee:

URL: https://cgit.FreeBSD.org/src/commit/?id=49b4137da6ea1443f9b166cd6204ae03cfe9cbd9

commit 49b4137da6ea1443f9b166cd6204ae03cfe9cbd9
Author:     Alexander Ziaee <ziaee@FreeBSD.org>
AuthorDate: 2026-09-13 11:42:51 +0000
Commit:     Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2026-09-13 11:42:52 +0000

    chflags: Alias nocache to noucache for consistency
    
    Event:                  EuroBSDcon 2026
    Requested by:           fuz
    Reviewed by:            fuz, rmacklem
    Differential Revision:  https://reviews.freebsd.org/D59588
---
 bin/chflags/chflags.1      | 4 ++--
 lib/libc/gen/strtofflags.c | 5 ++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/bin/chflags/chflags.1 b/bin/chflags/chflags.1
index 35553d4972c3..eb139e2e258d 100644
--- a/bin/chflags/chflags.1
+++ b/bin/chflags/chflags.1
@@ -29,7 +29,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd August 26, 2026
+.Dd September 12, 2026
 .Dt CHFLAGS 1
 .Os
 .Sh NAME
@@ -130,7 +130,7 @@ The following keywords are currently defined:
 .Bl -tag -offset indent -width ".Cm opaque"
 .It Cm arch , archived
 set the archived flag (super-user only)
-.It Cm nocache
+.It Cm nocache, noucache
 set the nocache flag (owner or super-user only)
 .It Cm nodump
 set the nodump flag (owner or super-user only)
diff --git a/lib/libc/gen/strtofflags.c b/lib/libc/gen/strtofflags.c
index 4c8d5c4030b6..a42d24b124ee 100644
--- a/lib/libc/gen/strtofflags.c
+++ b/lib/libc/gen/strtofflags.c
@@ -81,11 +81,10 @@ static struct {
 	{ "nousparse",		0, UF_SPARSE	},
 	{ "nosystem",		0, UF_SYSTEM	},
 	/* Needed for some Linux cross-build that uses a stale stat.h. */
-#ifdef UF_NOCACHE
 	{ "nousystem",		0, UF_SYSTEM	},
+#ifdef UF_NOCACHE
+	{ "nocache",		1, UF_NOCACHE	},
 	{ "noucache",		1, UF_NOCACHE	}
-#else
-	{ "nousystem",		0, UF_SYSTEM	}
 #endif
 };
 #define nmappings	(sizeof(mapping) / sizeof(mapping[0]))