Use S_IXUSR instead of the now-obsolete S_IEXEC.
authorWayne Davison <wayned@samba.org>
Sun, 19 May 2013 21:25:58 +0000 (21:25 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 19 May 2013 22:01:29 +0000 (22:01 +0000)
batch.c

diff --git a/batch.c b/batch.c
index 23e8633728277ed7f1eef4ac021a58a0e5aa4076..afda1f97096022b77929bfeb8adef1a7aa758d95 100644 (file)
--- 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);