diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 1995-09-01 18:18:32 +0000 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 1995-09-01 18:18:32 +0000 |
commit | 042edfbf17b0691ec0f2293f91edb9a8fe6f58f2 (patch) | |
tree | c175bca224e3600f86d8540b7f3b0436b8cabf89 /parse.c | |
parent | 4079bf84561bf7ff6015da382d8e4c09874276bf (diff) | |
download | sudo-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |