Document the `arch' flag. Fix the test of the getopt(3) return value.

This commit is contained in:
mycroft 1995-01-04 05:40:08 +00:00
parent 975c7373da
commit def22ebf96
2 changed files with 6 additions and 8 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: chflags.1,v 1.2 1994/11/14 20:27:22 jtc Exp $
.\" $NetBSD: chflags.1,v 1.3 1995/01/04 05:40:08 mycroft Exp $
.\"
.\" Copyright (c) 1989, 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@ -81,7 +81,7 @@ in the files instead of just the files themselves.
Flags are a comma separated list of keywords.
The following keywords are currently defined:
.Bd -literal -offset indent compact
.\"arch nothing yet.
arch set the archived flag
dump set the dump flag
sappnd set the system append-only flag (super-user only)
schg set the system immutable flag (super-user only)

View File

@ -1,4 +1,4 @@
/* $NetBSD: chflags.c,v 1.2 1994/11/14 20:27:23 jtc Exp $ */
/* $NetBSD: chflags.c,v 1.3 1995/01/04 05:40:10 mycroft Exp $ */
/*
* Copyright (c) 1992, 1993, 1994
@ -40,10 +40,8 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)chflags.c 8.5 (Berkeley) 4/1/94";
#endif
static char rcsid[] = "$NetBSD: chflags.c,v 1.2 1994/11/14 20:27:23 jtc Exp $";
/*static char sccsid[] = "from: @(#)chflags.c 8.5 (Berkeley) 4/1/94";*/
static char rcsid[] = "$NetBSD: chflags.c,v 1.3 1995/01/04 05:40:10 mycroft Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -73,7 +71,7 @@ main(argc, argv)
char *flags, *ep;
Hflag = Lflag = Pflag = Rflag = 0;
while ((ch = getopt(argc, argv, "HLPR")) != EOF)
while ((ch = getopt(argc, argv, "HLPR")) != -1)
switch (ch) {
case 'H':
Hflag = 1;