*: s/open3_or_warn/open_or_warn/ where makes sense
authorDenys Vlasenko <dvlasenk@redhat.com>
Wed, 20 Oct 2010 11:21:22 +0000 (13:21 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Wed, 20 Oct 2010 11:21:22 +0000 (13:21 +0200)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
coreutils/fsync.c
miscutils/crond.c

index d1fe2b58453811a4d0d87183ef15e1a8300ef969..b8b463cd16465f5f05bba6f4a7f4cb09d6d2aab6 100644 (file)
@@ -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;
index fddddcd8c0f359b1ad45d848df0f1fa97964e0e7..7f2d54c9f305acfe85604d8843e4fa48b77774db 100644 (file)
@@ -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);
                }