aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-02-07 14:44:52 +0000
committerGuido Guenther <agx@sigxcpu.org>2006-02-07 14:44:52 +0000
commitd310f3f3dbe8c226d690fe1d4ab0280086799677 (patch)
treea02704a04934a402cf2362da16fafdf97e711f13
parentd0393219996e9f32e8adf61497a7d327552b804d (diff)
cleanups
-rw-r--r--pam_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pam_exec.c b/pam_exec.c
index bed00aa..84fbe4c 100644
--- a/pam_exec.c
+++ b/pam_exec.c
@@ -79,12 +79,12 @@ static int do_exec(pam_handle_t *pamh, const char *function, int argc, const cha
for (i = 0; i < argc; i++) {
if (!strncmp (argv[i], "exec=", 5))
pass_argv[0] = argv[i] + 5;
- if (!strncmp (argv[i], "args=", 5))
+ else if (!strncmp (argv[i], "args=", 5))
args = argv[i] + 5;
else if (!strcmp (argv[i], "debug"))
debug=1;
else
- syslog (LOG_ERR, "illegal option %s", argv[i]);
+ _pam_log(LOG_ERR, "illegal option %s", argv[i]);
}
if(!pass_argv[0]) {
_pam_log(LOG_ERR, "No executable given");