search for: preserve_executability

Displaying 11 results from an estimated 11 matches for "preserve_executability".

2010 Jun 15
3
about rsyncing of block devices
...++ rsync-3.0.7.new/generator.c 2010-06-15 11:08:41.919557425 +0100 @@ -39,6 +39,7 @@ extern int preserve_acls; extern int preserve_xattrs; extern int preserve_links; extern int preserve_devices; +extern int copy_devices; extern int preserve_specials; extern int preserve_hard_links; extern int preserve_executability; @@ -980,7 +981,7 @@ static int try_dests_reg(struct file_str do { pathjoin(cmpbuf, MAXPATHLEN, basis_dir[j], fname); - if (link_stat(cmpbuf, &sxp->st, 0) < 0 || !S_ISREG(sxp->st.st_mode)) + if (link_stat(cmpbuf, &sxp->st, 0) < 0 || !(S_ISREG(sxp->st.st_mode) || (...
2008 Feb 16
1
Rsync itemizing "p" even when -p, -E are off
...e generator itemizes "p" whenever a file's file-list permissions differ from the permissions in its stat buffer (those of the existing destination file if any, otherwise those of the alternate basis file). Before commit b9887818, this itemization was conditioned on (preserve_perms || preserve_executability). Wayne, what was the specific rationale for removing the condition? I suppose one could justify unconditionally itemizing a difference between file-list permissions and an existing destination file since rsync sets the file-list permissions on the destination file unconditionally. However, I fe...
2008 Dec 05
0
rsync patch to allow content from one device file to be synced to another device file
...all.c rsync-HEAD-20081115-2333GMT-d2d/syscall.c --- rsync-HEAD-20081115-2333GMT/syscall.c 2008-03-21 10:26:25.000000000 -0400 +++ rsync-HEAD-20081115-2333GMT-d2d/syscall.c 2008-12-04 16:56:38.000000000 -0500 @@ -35,6 +35,7 @@ extern int list_only; extern int preserve_perms; extern int preserve_executability; +extern int copy_devices; #define RETURN_ERROR_IF(x,e) \ do { \ @@ -50,6 +51,7 @@ { if (dry_run) return 0; RETURN_ERROR_IF_RO_OR_LO; + if (copy_devices) return 0; return unlink(fname); }
2010 Feb 11
0
DO NOT REPLY [Bug 6276] crtimes.patch does not preserve creation dates on Mac x86_64 only
...elds 64-bit aligned and it has the same problem. ?To convince the compiler that the timespec really should come immediately after the length, the struct can be packed with the pragma pack directive. ?I tested the following, and it worked. @@ -37,10 +37,13 @@ ?extern int preserve_perms; ?extern int preserve_executability; +#pragma pack(push) +#pragma pack(4) ?struct create_time { - ? ? ? unsigned long length; + ? ? ? uint32 length; ? ? ? ?struct timespec crtime; ?}; +#pragma pack(pop) ?#define RETURN_ERROR_IF(x,e) \ ? ? ? ?do { \ > ------- Comment #7 from wayned at samba.org 2010-02-06 15:57 CST ------- >...
2009 Oct 15
1
PATCH: --write-devices to allow synchronising to a block device
...000000000 +1200 +++ rsync-3.0.6-writedev/generator.c 2009-10-15 20:54:07.000000000 +1300 @@ -39,6 +39,7 @@ extern int preserve_xattrs; extern int preserve_links; extern int preserve_devices; +extern int write_devices; extern int preserve_specials; extern int preserve_hard_links; extern int preserve_executability; @@ -1733,7 +1734,7 @@ fnamecmp = fname; fnamecmp_type = FNAMECMP_FNAME; - if (statret == 0 && !S_ISREG(sx.st.st_mode)) { + if (statret == 0 && !(S_ISREG(sx.st.st_mode) || (write_devices && IS_DEVICE(sx.st.st_mode)))) { if (delete...
2008 Apr 14
0
[PATCH] xattrs not set on locked files that already exist on target
...nc.c 2008-04-08 21:37:18.000000000 -0500 +++ rsync-3.0.2/rsync.c 2008-04-14 13:05:44.000000000 -0500 @@ -31,6 +31,7 @@ extern int dry_run; extern int preserve_acls; extern int preserve_xattrs; +extern int force_change; extern int preserve_perms; extern int preserve_fileflags; extern int preserve_executability; @@ -445,6 +446,11 @@ if (daemon_chmod_modes && !S_ISLNK(new_mode)) new_mode = tweak_mode(new_mode, daemon_chmod_modes); +#ifdef SUPPORT_FORCE_CHANGE + if (force_change) + make_mutable(fname, sxp->st.st_mode, sxp->st.st_flags, force_change); +#endif + #ifdef SUPPORT_ACLS...
2008 Feb 15
4
Revised flags patch
...c-3.0.0pre9-flags/options.c --- rsync-3.0.0pre9/options.c Sat Jan 19 20:20:17 2008 +++ rsync-3.0.0pre9-flags/options.c Fri Feb 15 19:35:16 2008 @@ -52,6 +52,7 @@ int preserve_hard_links = 0; int preserve_acls = 0; int preserve_xattrs = 0; int preserve_perms = 0; +int preserve_fileflags = 0; int preserve_executability = 0; int preserve_devices = 0; int preserve_specials = 0; @@ -223,6 +224,7 @@ static void print_rsync_version(enum log char const *links = "no "; char const *iconv = "no "; char const *ipv6 = "no "; + char const *fileflags = "no "; STRUCT_STAT *dums...
2023 May 17
1
[PATCH] Add --omit-{device,special}-times options
...This tells the receiving side to attempt super-user activities even if the diff -aNpRruz -X /etc/diff.excludes rsync-3.2.7/rsync.c devel-3.2.7/rsync.c --- rsync-3.2.7/rsync.c 2022-08-13 11:53:53.000000000 -0600 +++ devel-3.2.7/rsync.c 2022-08-13 11:53:53.000000000 -0600 @@ -35,6 +35,8 @@ extern int preserve_executability; extern int preserve_mtimes; extern int omit_dir_times; extern int omit_link_times; +extern int omit_device_times; +extern int omit_special_times; extern int am_root; extern int am_server; extern int am_daemon; @@ -578,7 +580,9 @@ int set_file_attrs(const char *fname, struct file_struct *file...
2008 Jun 25
2
DO NOT REPLY [Bug 5565] New: xattrs not set on locked files that already exist on target
...06-23 22:31:58.000000000 -0700 +++ rsync-3.0.3pre3_patched/rsync.c 2008-06-23 22:59:03.000000000 -0700 @@ -31,6 +31,7 @@ extern int dry_run; extern int preserve_acls; extern int preserve_xattrs; +extern int force_change; extern int preserve_perms; extern int preserve_fileflags; extern int preserve_executability; @@ -445,6 +446,11 @@ if (daemon_chmod_modes && !S_ISLNK(new_mode)) new_mode = tweak_mode(new_mode, daemon_chmod_modes); +#ifdef SUPPORT_FORCE_CHANGE + if (force_change) + make_mutable(fname, sxp->st.st_mode, sxp->st.st_flags, force_change)...
2006 Jun 02
3
[PATCH] --omit-dir-changes, qsort<>mergesort issues
...mode, exists); } Index: rsync.c =================================================================== RCS file: /cvsroot/rsync/rsync.c,v retrieving revision 1.194 diff -u -r1.194 rsync.c --- rsync.c 1 Jun 2006 08:04:40 -0000 1.194 +++ rsync.c 2 Jun 2006 13:00:01 -0000 @@ -37,6 +37,7 @@ extern int preserve_executability; extern int preserve_times; extern int omit_dir_times; +extern int omit_dir_changes; extern int am_root; extern int am_server; extern int am_sender; @@ -160,9 +161,11 @@ updated = 1; } - change_uid = am_root && preserve_uid && st->st_uid != file->uid; + change_uid...
2007 Sep 22
0
rsync build on IA64 using icc
...4): remark #1419: external declaration in primary source file extern int dry_run; ^ rsync.c(35): remark #1419: external declaration in primary source file extern int preserve_perms; ^ rsync.c(36): remark #1419: external declaration in primary source file extern int preserve_executability; ^ rsync.c(37): remark #1419: external declaration in primary source file extern int preserve_times; ^ rsync.c(38): remark #1419: external declaration in primary source file extern int omit_dir_times; ^ rsync.c(39): remark #1419: external declaration in...