summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-04-16 11:03:22 +0000
committerjoe <joe@FreeBSD.org>2002-04-16 11:03:22 +0000
commitb9814500193331e3b93b279ab5224b997694ddfe (patch)
tree11e5c83170f3631ed49075bf6e7a38110ea37530 /lib/libc
parent903c50775a178354bb01ca3e939fc3a8212d981c (diff)
downloadFreeBSD-src-b9814500193331e3b93b279ab5224b997694ddfe.zip
FreeBSD-src-b9814500193331e3b93b279ab5224b997694ddfe.tar.gz
Support the snapshot file flag, so that tools like 'ls -ol' work
as expected on snapshot files. PR: bin/37038 Submitted by: Joshua Goodall <joshua@roughtrade.net>
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/strtofflags.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gen/strtofflags.c b/lib/libc/gen/strtofflags.c
index 292f1c5..be54f6a 100644
--- a/lib/libc/gen/strtofflags.c
+++ b/lib/libc/gen/strtofflags.c
@@ -59,6 +59,9 @@ static struct {
{ "nosimmutable", SF_IMMUTABLE, 0 },
{ "nosunlnk", SF_NOUNLINK, 0 },
{ "nosunlink", SF_NOUNLINK, 0 },
+#ifdef SF_SNAPSHOT
+ { "nosnapshot", SF_SNAPSHOT, 0 },
+#endif
{ "nouappnd", UF_APPEND, 0 },
{ "nouappend", UF_APPEND, 0 },
{ "nouchg", UF_IMMUTABLE, 0 },
OpenPOWER on IntegriCloud