aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/fsync.c2
-rw-r--r--miscutils/crond.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/fsync.c b/coreutils/fsync.c
index d1fe2b584..b8b463cd1 100644
--- a/coreutils/fsync.c
+++ b/coreutils/fsync.c
@@ -27,7 +27,7 @@ int fsync_main(int argc UNUSED_PARAM, char **argv)
status = EXIT_SUCCESS;
do {
- int fd = open3_or_warn(*argv, O_NOATIME | O_NOCTTY | O_RDONLY, 0);
+ int fd = open_or_warn(*argv, O_NOATIME | O_NOCTTY | O_RDONLY);
if (fd == -1) {
status = EXIT_FAILURE;
diff --git a/miscutils/crond.c b/miscutils/crond.c
index fddddcd8c..7f2d54c9f 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -123,7 +123,7 @@ static void crondlog(const char *ctl, ...)
/* Syslog mode: all to syslog (logmode = LOGMODE_SYSLOG), */
if (!DebugOpt && G.log_filename) {
/* Otherwise (log to file): we reopen log file at every write: */
- int logfd = open3_or_warn(G.log_filename, O_WRONLY | O_CREAT | O_APPEND, 0666);
+ int logfd = open_or_warn(G.log_filename, O_WRONLY | O_CREAT | O_APPEND);
if (logfd >= 0)
xmove_fd(logfd, STDERR_FILENO);
}