diff options
author | Guido Guenther <agx@sigxcpu.org> | 2006-02-07 14:44:52 +0000 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2006-02-07 14:44:52 +0000 |
commit | d310f3f3dbe8c226d690fe1d4ab0280086799677 (patch) | |
tree | a02704a04934a402cf2362da16fafdf97e711f13 | |
parent | d0393219996e9f32e8adf61497a7d327552b804d (diff) |
cleanups
-rw-r--r-- | pam_exec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |