aboutsummaryrefslogtreecommitdiff
path: root/bin/chmod
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1997-03-28 15:24:41 +0000
committerWarner Losh <imp@FreeBSD.org>1997-03-28 15:24:41 +0000
commit93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6 (patch)
tree27b535c748fe2bf5a45a09dca51479595187c73f /bin/chmod
parentcaccaa9b2a645d1b9261aff743dfc96f05927071 (diff)
downloadsrc-93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6.tar.gz
src-93ef08af3ef1a9fb7a3af6b7212d3ca094e9aba6.zip
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes: svn path=/head/; revision=24348
Diffstat (limited to 'bin/chmod')
-rw-r--r--bin/chmod/chmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c
index 2004a5188d2f..6d61ca449aea 100644
--- a/bin/chmod/chmod.c
+++ b/bin/chmod/chmod.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: chmod.c,v 1.8 1997/02/22 14:01:30 peter Exp $
*/
#ifndef lint
@@ -73,7 +73,7 @@ main(argc, argv)
set = NULL;
omode = 0;
Hflag = Lflag = Pflag = Rflag = fflag = hflag = 0;
- while ((ch = getopt(argc, argv, "HLPRXfgorstuwx")) != EOF)
+ while ((ch = getopt(argc, argv, "HLPRXfgorstuwx")) != -1)
switch (ch) {
case 'H':
Hflag = 1;