mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
destroy bug [0000381]
This commit is contained in:
parent
f087480da1
commit
d0c41a8519
@ -132,7 +132,7 @@ static void crondlog(const char *ctl, ...)
|
|||||||
if (LogFile == 0) {
|
if (LogFile == 0) {
|
||||||
vsyslog(type, fmt, va);
|
vsyslog(type, fmt, va);
|
||||||
} else {
|
} else {
|
||||||
int logfd = open(LogFile, O_WRONLY | O_CREAT | O_APPEND, 600);
|
int logfd = open(LogFile, O_WRONLY | O_CREAT | O_APPEND, 0600);
|
||||||
if (logfd >= 0) {
|
if (logfd >= 0) {
|
||||||
vdprintf(logfd, fmt, va);
|
vdprintf(logfd, fmt, va);
|
||||||
close(logfd);
|
close(logfd);
|
||||||
@ -348,7 +348,7 @@ static void startlogger(void)
|
|||||||
else { /* test logfile */
|
else { /* test logfile */
|
||||||
int logfd;
|
int logfd;
|
||||||
|
|
||||||
if ((logfd = open(LogFile, O_WRONLY | O_CREAT | O_APPEND, 600)) >= 0) {
|
if ((logfd = open(LogFile, O_WRONLY | O_CREAT | O_APPEND, 0600)) >= 0) {
|
||||||
close(logfd);
|
close(logfd);
|
||||||
} else {
|
} else {
|
||||||
bb_perror_msg("Failed to open log file '%s' reason", LogFile);
|
bb_perror_msg("Failed to open log file '%s' reason", LogFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user