diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-20 18:15:59 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-06-20 18:15:59 +0000 |
commit | 59595c532d2443ad2ce1b25d16ddcb15e5e6952e (patch) | |
tree | 32487070d4a4d7e6a8b0c70d2820bf85b3eab410 /usr.bin/tcfs/tcfsadduser.c | |
parent | 586a831be34109f41637ebeda5da9caf92e49b80 (diff) |
getopt(3) returns -1, not EOF
Diffstat (limited to 'usr.bin/tcfs/tcfsadduser.c')
-rw-r--r-- | usr.bin/tcfs/tcfsadduser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tcfs/tcfsadduser.c b/usr.bin/tcfs/tcfsadduser.c index 5418b62c0b2..9bcaf9c696c 100644 --- a/usr.bin/tcfs/tcfsadduser.c +++ b/usr.bin/tcfs/tcfsadduser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcfsadduser.c,v 1.7 2000/06/20 08:59:53 fgsch Exp $ */ +/* $OpenBSD: tcfsadduser.c,v 1.8 2000/06/20 18:15:57 aaron Exp $ */ /* * Transparent Cryptographic File System (TCFS) for NetBSD @@ -41,7 +41,7 @@ adduser_main(int argn, char *argv[]) /* * Going to check the arguments */ - while ((val = getopt(argn, argv, "g:l:hv")) != EOF) + while ((val = getopt(argn, argv, "g:l:hv")) != -1) switch (val) { case 'l': strlcpy(user, optarg, sizeof(user)); |