Displaying 19 results from an estimated 19 matches for "preserve_link".
Did you mean:
preserve_links
2009 Oct 15
1
PATCH: --write-devices to allow synchronising to a block device
...------------------------[snip]
diff -ru rsync-3.0.6/generator.c rsync-3.0.6-writedev/generator.c
--- rsync-3.0.6/generator.c 2009-04-27 02:51:50.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....
2004 Jan 24
2
[PATCH] --links-depth for rsync
...=============================================
RCS file: /cvsroot/rsync/flist.c,v
retrieving revision 1.169
diff -u -r1.169 flist.c
--- flist.c 22 Jan 2004 18:39:32 -0000 1.169
+++ flist.c 24 Jan 2004 20:30:08 -0000
@@ -50,6 +50,7 @@
extern int one_file_system;
extern int make_backups;
extern int preserve_links;
+extern int follow_links_depth;
extern int preserve_hard_links;
extern int preserve_perms;
extern int preserve_devices;
@@ -725,6 +726,65 @@
/* IRIX cc cares that the operands to the ternary have the same type. */
#define MALLOC(ap, i) (ap ? (void*) string_area_malloc(ap, i) : malloc(i))
+...
2005 Jun 09
0
[Bug 2784] New: rsync gives following error: buffer overflow in receive_file_entry
...c seems to complete fine however
the symbolic links that have the following pattern symlink -> /foo/bar get
rsynced to symlink -> foo/bar.
I looked at the source and I have found the code that generated the errors that
I see. below is the code section from flist.c:
#if SUPPORT_LINKS
if (preserve_links && S_ISLNK(mode)) {
linkname_len = read_int(f) + 1; /* count the '\0' */
if (linkname_len <= 0 || linkname_len > MAXPATHLEN) {
rprintf(FERROR, "overflow: linkname_len=%d\n",
linkname_len - 1);
overflow("receive_file_entry");
}
}
else
#end...
2005 Jun 09
0
[Bug 2785] New: rsync gives following error: buffer overflow in receive_file_entry
...c seems to complete fine however
the symbolic links that have the following pattern symlink -> /foo/bar get
rsynced to symlink -> foo/bar.
I looked at the source and I have found the code that generated the errors that
I see. below is the code section from flist.c:
#if SUPPORT_LINKS
if (preserve_links && S_ISLNK(mode)) {
linkname_len = read_int(f) + 1; /* count the '\0' */
if (linkname_len <= 0 || linkname_len > MAXPATHLEN) {
rprintf(FERROR, "overflow: linkname_len=%d\n",
linkname_len - 1);
overflow("receive_file_entry");
}
}
else
#end...
2010 Jun 15
3
about rsyncing of block devices
...a proof of concept.
diff -pur rsync-3.0.7/generator.c rsync-3.0.7.new/generator.c
--- rsync-3.0.7/generator.c 2009-12-23 19:36:27.000000000 +0000
+++ 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(...
2003 Mar 20
2
--link-dest uid/gid checking bug?
...missing something.
Thanks,
Chris.
diff -u generator.c.orig generator.c
====================================
--- generator.c.orig 2003-03-19 15:07:29.592476000 -0500
+++ generator.c 2003-03-19 16:12:24.994685000 -0500
@@ -27,6 +27,8 @@
extern int dry_run;
extern int relative_paths;
extern int preserve_links;
+extern int preserve_uid;
+extern int preserve_gid;
extern int am_root;
extern int preserve_devices;
extern int preserve_hard_links;
@@ -55,7 +57,8 @@
if((st->st_mode & ~_S_IFMT) != (file->mode & ~_S_IFMT)) {
return 0;
}
- if (st->st_uid != file->uid || st->s...
2004 Nov 13
1
Archive Delete Mode
...an archive mode that includes the delete option.
--- orig/options.c 2004-09-23 13:39:05.000000000 -0400
+++ options.c 2004-11-13 09:56:27.000000000 -0500
@@ -39,6 +39,7 @@
int whole_file = -1;
int archive_mode = 0;
+int archive_delete_mode = 0;
int keep_dirlinks = 0;
int copy_links = 0;
int preserve_links = 0;
@@ -233,6 +234,7 @@
rprintf(F," -q, --quiet decrease verbosity\n");
rprintf(F," -c, --checksum always checksum\n");
rprintf(F," -a, --archive archive mode, equivalent to -rlptgoD\n");
+ rprintf(F," -A, --a...
2002 Jun 21
1
small security-related rsync extension
...acting backup-priv-backups (Text)"
sed 's/^X//' << 'SHAR_EOF' > backup-priv-backups &&
X*** backup.c.t Sun May 6 23:59:37 2001
X--- backup.c Fri Jun 21 13:15:51 2002
X***************
X*** 29,34 ****
X--- 29,56 ----
X extern int preserve_devices;
X extern int preserve_links;
X extern int preserve_hard_links;
X+ extern int priv_backups;
X+
X+ #ifdef HAVE_CHMOD
X+ static int strip_perm(char *fname)
X+ {
X+ struct stat buf;
X+ if (link_stat(fname,&buf) != 0) {
X+ rprintf(FERROR,"stat failed\n");
X+ return 0;
X+ }
X+
X+ if (S_ISREG(buf.st_mode) &...
2001 Nov 13
2
direct write patch
...mmy
diff -ru rsync-2.4.6/options.c rsync-2.4.6-direct-write/options.c
--- rsync-2.4.6/options.c Tue Sep 5 19:46:43 2000
+++ rsync-2.4.6-direct-write/options.c Sun Nov 11 10:40:01 2001
@@ -22,6 +22,7 @@
int make_backups = 0;
+int direct_write = 0;
int whole_file = 0;
int copy_links = 0;
int preserve_links = 0;
@@ -147,6 +148,7 @@
rprintf(F," --ignore-errors delete even if there are IO errors\n");
rprintf(F," --max-delete=NUM don't delete more than NUM files\n");
rprintf(F," --partial keep partially transferred files\n&qu...
2004 Apr 27
1
rsync-2.6.1 close() fixes
...%s to %s\n",fnametmp,fname);
--- rsync-2.6.1/options.c.bak 2004-04-17 20:07:23.000000000 +0300
+++ rsync-2.6.1/options.c 2004-04-27 19:28:10.000000000 +0300
@@ -37,6 +37,7 @@ int make_backups = 0;
**/
int whole_file = -1;
+int do_fsync = 0;
int archive_mode = 0;
int copy_links = 0;
int preserve_links = 0;
@@ -230,6 +231,7 @@ void usage(enum logcode F)
rprintf(F," -b, --backup make backups (see --suffix & --backup-dir)\n");
rprintf(F," --backup-dir make backups into this directory\n");
rprintf(F," --suffix=SUFFIX ba...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
...T_ARG_NONE, &cvs_exclude , 0, 0, 0 },
+ {"rsync-exclude", 'C', POPT_ARG_NONE, &rsync_exclude , 0, 0, 0 },
{"update", 'u', POPT_ARG_NONE, &update_only , 0, 0, 0 },
{"links", 'l', POPT_ARG_NONE, &preserve_links , 0, 0, 0 },
{"copy-links", 'L', POPT_ARG_NONE, ©_links , 0, 0, 0 },
diff -ru rsync-2.5.6cvs/rsync.yo rsync-2.5.6cvsJ/rsync.yo
--- rsync-2.5.6cvs/rsync.yo Tue Jan 14 09:35:25 2003
+++ rsync-2.5.6cvsJ/rsync.yo Tue Jan 14 09:35:40 2003
@@ -276,6 +276,11 @@
this...
2008 May 08
1
Patch to not modify files in place unless "--inplace" option specified
...tent of type multipart/alternative-------------- next part --------------
diff -urN rsync-3.0.2-orig/generator.c rsync-3.0.2/generator.c
--- rsync-3.0.2-orig/generator.c 2008-03-28 10:30:11.000000000 -0700
+++ rsync-3.0.2/generator.c 2008-05-07 15:35:08.317364774 -0700
@@ -1508,6 +1508,7 @@
if (preserve_links && S_ISLNK(file->mode)) {
#ifdef SUPPORT_LINKS
+ int iflags = 0;
const char *sl = F_SYMLINK(file);
if (safe_symlinks && unsafe_symlink(sl, fname)) {
if (verbose) {
@@ -1528,7 +1529,15 @@
else if ((len = readlink(fname, lnk, MAXPATHLEN-1)) > 0
&&a...
2005 Apr 25
2
How about a --min-size option, next to --max-size
There's a rather old bug report in Debian's bug tracking system
(see http://bugs.debian.org/27126) about wanting to be able to specify
the maximum file size, as well as the minimum file size. Here's the
text:
Sometimes, it's useful to specify a file size range one is
interested in.
For example, I'd like to keep an up-to-date mirror of Debian, but I
currently
2003 Feb 16
1
rsync-exclude.patch.
...39;, POPT_ARG_NONE, &cvs_exclude , 0, 0, 0 },
+ {"rsync-exclude", 0, POPT_ARG_STRING, &rsync_exclude , 0, 0, 0 },
{"update", 'u', POPT_ARG_NONE, &update_only , 0, 0, 0 },
{"links", 'l', POPT_ARG_NONE, &preserve_links , 0, 0, 0 },
{"copy-links", 'L', POPT_ARG_NONE, ©_links , 0, 0, 0 },
diff -ru rsync-2.5.6/proto.h rsync-2.5.6J/proto.h
--- rsync-2.5.6/proto.h Sun Jan 26 20:35:09 2003
+++ rsync-2.5.6J/proto.h Wed Jan 29 17:16:39 2003
@@ -58,6 +58,7 @@
void setup_protocol(int f...
2004 Apr 10
0
patches for copying atimes
...ex: flist.c
===================================================================
RCS file: /cvsroot/rsync/flist.c,v
retrieving revision 1.209
diff -u -w -r1.209 flist.c
--- flist.c 8 Apr 2004 23:15:39 -0000 1.209
+++ flist.c 10 Apr 2004 23:28:35 -0000
@@ -140,16 +140,16 @@
#if SUPPORT_LINKS
if (preserve_links && S_ISLNK(f->mode)) {
- rprintf(FINFO, "%s %11.0f %s %s -> %s\n",
+ rprintf(FINFO, "%s %11.0f %s %s %s -> %s\n",
perms,
(double) f->length, timestring(f->modtime),
- f_name(f), f->u.link);
+ timestring(f->atime), f_name(f), f->u.li...
2004 Apr 09
3
include/exclude bug in rsync 2.6.0/2.6.1pre1
...C', POPT_ARG_NONE, &cvs_exclude, 0, 0, 0 },
+ {"rsync-exclude", 0, POPT_ARG_STRING, &rsync_exclude, 0, 0, 0 },
{"update", 'u', POPT_ARG_NONE, &update_only, 0, 0, 0 },
{"links", 'l', POPT_ARG_NONE, &preserve_links, 0, 0, 0 },
{"copy-links", 'L', POPT_ARG_NONE, ©_links, 0, 0, 0 },
diff -ru rsync-2.6.1pre-1/proto.h rsync-2.6.1pre-1J/proto.h
--- rsync-2.6.1pre-1/proto.h 2004-02-18 00:13:06.000000000 +0100
+++ rsync-2.6.1pre-1J/proto.h 2004-04-07 11:42:21.000000000 +0200
@@ -...
2004 Apr 20
1
improved atime patch
...x: flist.c
===================================================================
RCS file: /cvsroot/rsync/flist.c,v
retrieving revision 1.214
diff -u -w -r1.214 flist.c
--- flist.c 17 Apr 2004 17:14:12 -0000 1.214
+++ flist.c 20 Apr 2004 21:06:18 -0000
@@ -140,16 +140,16 @@
#if SUPPORT_LINKS
if (preserve_links && S_ISLNK(f->mode)) {
- rprintf(FINFO, "%s %11.0f %s %s -> %s\n",
+ rprintf(FINFO, "%s %11.0f %s %s %s -> %s\n",
perms,
(double) f->length, timestring(f->modtime),
- f_name(f), f->u.link);
+ timestring(f->atime), f_name(f), f->u.li...
2008 Feb 15
4
Revised flags patch
...ion sigprocmask setattrlist
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
diff -brpu rsync-3.0.0pre9/flist.c rsync-3.0.0pre9-flags/flist.c
--- rsync-3.0.0pre9/flist.c Sun Feb 10 06:41:50 2008
+++ rsync-3.0.0pre9-flags/flist.c Fri Feb 15 19:33:09 2008
@@ -50,6 +50,7 @@ extern int preserve_links;
extern int preserve_hard_links;
extern int preserve_devices;
extern int preserve_specials;
+extern int fileflags_ndx;
extern int uid_ndx;
extern int gid_ndx;
extern int eol_nulls;
@@ -344,6 +345,9 @@ static void send_file_entry(int f, struc
{
static time_t modtime;
static mode_t mode;...
2007 Sep 22
0
rsync build on IA64 using icc
...1419: external declaration in primary source file
extern int implied_dirs;
^
generator.c(37): remark #1419: external declaration in primary source file
extern int keep_dirlinks;
^
generator.c(38): remark #1419: external declaration in primary source file
extern int preserve_links;
^
generator.c(39): remark #1419: external declaration in primary source file
extern int preserve_devices;
^
generator.c(40): remark #1419: external declaration in primary source file
extern int preserve_specials;
^
generator.c(41): remark #1419: exter...