summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@courtesan.com>1995-09-01 18:18:32 +0000
committerTodd C. Miller <Todd.Miller@courtesan.com>1995-09-01 18:18:32 +0000
commit042edfbf17b0691ec0f2293f91edb9a8fe6f58f2 (patch)
treec175bca224e3600f86d8540b7f3b0436b8cabf89 /parse.c
parent4079bf84561bf7ff6015da382d8e4c09874276bf (diff)
downloadsudo-042edfbf17b0691ec0f2293f91edb9a8fe6f58f2.tar.gz
fixed a logic bug. Was denying a command if user gave command
line args but there were none in the sudoers file which is wrong.
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 37ebdbb72..9c4ab7a27 100644
--- a/parse.c
+++ b/parse.c
@@ -213,7 +213,7 @@ int path_matches(cmnd, path)
* else return false.
*/
if (cmnd_st.st_dev == pst.st_dev && cmnd_st.st_ino == pst.st_ino) {
- if (!cmnd_args && !args)
+ if (!args)
return(TRUE);
else if (cmnd_args && args)
return((strcmp(cmnd_args, args) == 0));