From 56ce77ae35d5b06997784432a0c78c1e46c8ef5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=94=D0=BE=D0=BD=D1=87=D0?= =?UTF-8?q?=B5=D0=BD=D0=BA=D0=BE?= Date: Sun, 17 Mar 2013 00:20:35 +0400 Subject: [PATCH 2/4] Use S_IXUSR instead of the now-obsolete S_IEXEC. --- batch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/batch.c b/batch.c index 23e8633..afda1f9 100644 --- a/batch.c +++ b/batch.c @@ -221,7 +221,7 @@ void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt) stringjoin(filename, sizeof filename, batch_name, ".sh", NULL); fd = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC, - S_IRUSR | S_IWUSR | S_IEXEC); + S_IRUSR | S_IWUSR | S_IXUSR); if (fd < 0) { rsyserr(FERROR, errno, "Batch file %s open error", filename); -- 1.7.9