diff options
author | jmz <jmz@FreeBSD.org> | 1999-05-21 17:04:13 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1999-05-21 17:04:13 +0000 |
commit | b5e886e477ad5c478ddac7ace97484b93997828c (patch) | |
tree | 386ba75baea363acb0cd2acec4f6a89ac4a1c572 /lib/libutil | |
parent | 170fae0a339af3ac402f1eca6c62cafc76f1b7ff (diff) | |
download | FreeBSD-src-b5e886e477ad5c478ddac7ace97484b93997828c.zip FreeBSD-src-b5e886e477ad5c478ddac7ace97484b93997828c.tar.gz |
Chflags was clearing all flags supplied on the command line after a
clearing flag like dump or noschg, etc.
PR: bin/10071
Submitted by: Andreas Klussmann <andreas@infosys.heitec.net>
Diffstat (limited to 'lib/libutil')
-rw-r--r-- | lib/libutil/stat_flags.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/stat_flags.c b/lib/libutil/stat_flags.c index 1f22f5a..f847296 100644 --- a/lib/libutil/stat_flags.c +++ b/lib/libutil/stat_flags.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)stat_flags.c 8.1 (Berkeley) 5/31/93"; #else static const char rcsid[] = - "$Id: stat_flags.c,v 1.8 1997/08/07 22:28:25 steve Exp $"; + "$Id: stat_flags.c,v 1.9 1998/01/09 06:14:59 jb Exp $"; #endif #endif /* not lint */ @@ -118,13 +118,13 @@ string_to_flags(stringp, setp, clrp) int clear; char *string, *p; - clear = 0; if (setp) *setp = 0; if (clrp) *clrp = 0; string = *stringp; while ((p = strsep(&string, "\t ,")) != NULL) { + clear = 0; *stringp = p; if (*p == '\0') continue; |