diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2006-08-28 23:02:58 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2006-08-28 23:02:58 +0000 |
commit | 02bb68f7d71b19461087a51f872a21cf682bd608 (patch) | |
tree | d6665c21ed185382936a86a44d2a49cccaf5034b /modules/pam_exec/pam_exec.c | |
parent | 6fefdd6724fc7618a263bb69c03851cc4f46d3fc (diff) | |
download | pam-02bb68f7d71b19461087a51f872a21cf682bd608.tar.gz pam-02bb68f7d71b19461087a51f872a21cf682bd608.tar.bz2 pam-02bb68f7d71b19461087a51f872a21cf682bd608.zip |
Relevant BUGIDs:
Purpose of commit: bugfix
Commit summary:
---------------
2006-08-29 Dmitry V. Levin <ldv@altlinux.org>
* modules/pam_exec/pam_exec.c (call_exec): Add required third
argument to open() call with O_CREAT flag set.
Diffstat (limited to 'modules/pam_exec/pam_exec.c')
-rw-r--r-- | modules/pam_exec/pam_exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pam_exec/pam_exec.c b/modules/pam_exec/pam_exec.c index e0c8da03..34ba7404 100644 --- a/modules/pam_exec/pam_exec.c +++ b/modules/pam_exec/pam_exec.c @@ -159,7 +159,8 @@ call_exec (pam_handle_t *pamh, int argc, const char **argv) time_t tm = time (NULL); char *buffer = NULL; - if ((i = open (logfile, O_CREAT|O_APPEND|O_WRONLY)) == -1) + if ((i = open (logfile, O_CREAT|O_APPEND|O_WRONLY, + S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) == -1) { int err = errno; pam_syslog (pamh, LOG_ERR, "open of %s failed: %m", |