diff options
author | Wayne Davison <wayned@samba.org> | 2004-03-06 07:45:52 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-03-06 07:45:52 +0000 |
commit | 7e5cb90983c90b57b683277b2e21639456e42932 (patch) | |
tree | 878a10e993c0f3cf6aec9e4620e7f7720983a705 /batch.c | |
parent | 8120a98f47d1dd8a583abe1cfe11aa8366d04e6b (diff) | |
download | rsync-7e5cb90983c90b57b683277b2e21639456e42932.tar.gz rsync-7e5cb90983c90b57b683277b2e21639456e42932.tar.bz2 rsync-7e5cb90983c90b57b683277b2e21639456e42932.zip |
Other files use S_IWUSR instead of S_IWRITE, so use S_IWUSR and S_IRUSR.
Diffstat (limited to 'batch.c')
-rw-r--r-- | batch.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -32,7 +32,7 @@ void write_batch_flist_info(int flist_count, struct file_struct **files) stringjoin(filename, sizeof filename, batch_prefix, rsync_flist_file, NULL); - f = do_open(filename, O_WRONLY|O_CREAT|O_TRUNC, S_IREAD|S_IWRITE); + f = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); if (f < 0) { rprintf(FERROR, "Batch file %s open error: %s\n", filename, strerror(errno)); @@ -70,7 +70,7 @@ void write_batch_argvs_file(int argc, char *argv[]) batch_prefix, rsync_argvs_file, NULL); f = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC, - S_IREAD | S_IWRITE | S_IEXEC); + S_IRUSR | S_IWUSR | S_IEXEC); if (f < 0) { rprintf(FERROR, "Batch file %s open error: %s\n", filename, strerror(errno)); @@ -194,7 +194,7 @@ void write_batch_csum_info(int *flist_entry, struct sum_struct *s) batch_prefix, rsync_csums_file, NULL); f_csums = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC, - S_IREAD | S_IWRITE); + S_IRUSR | S_IWUSR); if (f_csums < 0) { rprintf(FERROR, "Batch file %s open error: %s\n", filename, strerror(errno)); @@ -282,7 +282,7 @@ void write_batch_delta_file(char *buff, int bytes_to_write) batch_prefix, rsync_delta_file, NULL); f_delta = do_open(filename, O_WRONLY | O_CREAT | O_TRUNC, - S_IREAD | S_IWRITE); + S_IRUSR | S_IWUSR); if (f_delta < 0) { rprintf(FERROR, "Batch file %s open error: %s\n", filename, strerror(errno)); |