diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 1996-10-07 05:07:09 +0000 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 1996-10-07 05:07:09 +0000 |
commit | 870247fcec31eed975674bc681e657b780b92955 (patch) | |
tree | d88c7318d77625a702c9f19613b984316b2e9d0d /logging.c | |
parent | 4e06ce5611bcfe2ff2bc51b6152ff6dfec55f84f (diff) | |
download | sudo-870247fcec31eed975674bc681e657b780b92955.tar.gz |
++version
Diffstat (limited to 'logging.c')
-rw-r--r-- | logging.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* - * CU sudo version 1.5.1 (based on Root Group sudo version 1.1) + * CU sudo version 1.5.2 (based on Root Group sudo version 1.1) * * This software comes with no waranty whatsoever, use at your own risk. * @@ -354,7 +354,7 @@ void log_error(code) #if (LOGGING & SLOG_FILE) /* become root */ - set_perms(PERM_ROOT); + set_perms(PERM_ROOT, 0); oldmask = umask(077); fp = fopen(_PATH_SUDO_LOGFILE, "a"); @@ -418,7 +418,7 @@ void log_error(code) } /* relinquish root */ - set_perms(PERM_USER); + set_perms(PERM_USER, 0); #endif /* LOGGING & SLOG_FILE */ /* send mail if appropriate */ @@ -464,7 +464,7 @@ static void send_mail() /* * we don't want any security problems ... */ - set_perms(PERM_FULL_USER); + set_perms(PERM_FULL_USER, 0); #ifdef POSIX_SIGNALS action.sa_handler = SIG_IGN; |