diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-01-13 04:01:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-01-13 04:01:32 +0000 |
commit | 2ab1d6e4c74827590cbbc18b0ab5f824423338d5 (patch) | |
tree | d1005a83a78571f0f00a7776ea8a60c994df52e5 /gnu/usr.bin/sudo | |
parent | 474ed9c3b472649cd00aa76e60dbfc5dcd5da6ca (diff) |
Fix bug wrt exclusion lists and relative pathnames.
Diffstat (limited to 'gnu/usr.bin/sudo')
-rw-r--r-- | gnu/usr.bin/sudo/sudo/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/sudo/sudo/parse.c b/gnu/usr.bin/sudo/sudo/parse.c index cae92c351b5..522e59ebff5 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.3 1997/11/23 07:15:46 millert Exp $ */ +/* $OpenBSD: parse.c,v 1.4 1998/01/13 04:01:31 millert Exp $ */ /* * CU sudo version 1.5.3 @@ -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 != '/') + if (*cmnd != '/' && *cmnd != '.') return(FALSE); /* only need to stat cmnd once since it never changes */ |