diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-01-13 15:22:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-01-13 15:22:32 +0000 |
commit | f94ef704348902a68d0fda532f8d822525590525 (patch) | |
tree | 51718f988571c57bb90340630662b71d75b9c4cb /gnu | |
parent | 7d8878438669522ec4f1b2007d805f359a8dde57 (diff) |
Missed a case in that bug fix.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/sudo/sudo/parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/sudo/sudo/parse.c b/gnu/usr.bin/sudo/sudo/parse.c index 48ab5ee2f35..bf1bf5b2d43 100644 --- a/gnu/usr.bin/sudo/sudo/parse.c +++ b/gnu/usr.bin/sudo/sudo/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.5 1998/01/13 05:30:27 millert Exp $ */ +/* $OpenBSD: parse.c,v 1.6 1998/01/13 15:22:31 millert Exp $ */ /* * CU sudo version 1.5.4 @@ -27,7 +27,7 @@ */ #ifndef lint -static char rcsid[] = "Id: parse.c,v 1.78 1998/01/13 04:48:42 millert Exp $"; +static char rcsid[] = "Id: parse.c,v 1.79 1998/01/13 15:19:08 millert Exp $"; #endif /* lint */ #include "config.h" @@ -220,7 +220,7 @@ int command_matches(cmnd, user_args, path, sudoers_args) static char *c; /* don't bother with pseudo commands like "validate" */ - if (*cmnd != '/' && *cmnd != '.') + if (strchr(cmnd, '/') == NULL) return(FALSE); /* only need to stat cmnd once since it never changes */ |