search for: rxas

Displaying 5 results from an estimated 5 matches for "rxas".

Did you mean: ras
2006 Jun 10
1
Two(?) bugs in the xattrs patch
...+1,523 @@ +@@ -0,0 +1,524 @@ +/* Extended Attribute support for rsync */ +/* Copyright (C) 2004 Red Hat, Inc */ +/* Written by Jay Fenlason, vaguely based on the ACLs patch */ @@ -590,10 +590,10 @@ + strcpy(ptr, name); + if (datum_size) + memcpy(ptr + len, datumbuf, datum_size); -+ x->rxas[curr_rsync_xal.count].name_len = len; -+ x->rxas[curr_rsync_xal.count].name = ptr; -+ x->rxas[curr_rsync_xal.count].datum_len = datum_size; -+ x->rxas[curr_rsync_xal.count].datum = ptr + len; ++ x->rxas[x->count].name_len = len; ++ x->rxas[x->count].name = ptr; ++ x->r...
2016 Dec 01
3
[PATCH v2 1/2] xattrs: Skip security.evm extended attribute
...<= 0 && + (!HAS_PREFIX(name, USER_PREFIX) || + !strcmp(name, "security.evm"))) { if (!am_root) { free(ptr); continue; @@ -962,6 +970,11 @@ static int rsync_xal_set(const char *fname, item_list *xalp, for (i = 0; i < xalp->count; i++) { name = rxas[i].name; +#ifdef HAVE_LINUX_XATTRS + if (!strcmp(name, "security.evm")) + continue; +#endif + if (XATTR_ABBREV(rxas[i])) { /* See if the fnamecmp version is identical. */ len = name_len = rxas[i].name_len; @@ -1030,6 +1043,9 @@ static int rsync_xal_set(const char *fname, i...
2011 Sep 22
3
[Bug 8475] New: memory leak around free_xattr() and rsync_xal_free(), with -aX, 200 bytes per file and per directory
...ry leak for each file and each dir, or a few giga for my big backup job. In free_xattr(), we have rsync_xal_free(sxp->xattr); free(sxp->xattr); sxp->xattr = NULL; In rsync_xal_free() we should also free the pointer to allocated memory: rsync_xa *rxas = xalp->items; // "xalp" is "sxp->xattr" free(rxas); <== need to add this line xalp->items = NULL; <== for good practice. xalp->count = 0; because xalp->items comes from malloc() earlier in expand_item_list():...
2008 Feb 01
0
rsync Digest, Vol 62, Issue 1
...0000000 -0600 @@ -128,7 +128,7 @@ } if (list_len >= 0) return list_len; - if (errno == ENOTSUP) + if (errno == ENOTSUP || errno == EPERM) return 0; if (errno == ERANGE) { list_len = sys_llistxattr(fname, NULL, 0); @@ -766,6 +766,8 @@ } if (sys_lsetxattr(fname, name, rxas[i].datum, rxas[i].datum_len) < 0) { + if (errno == EPERM) + return 0; rsyserr(FERROR_XFER, errno, "rsync_xal_set: lsetxattr(\"%s\",\"%s\") failed", fname, name); I plan to submit that, I just haven't had a spare moment. > > > Ho...
2007 Mar 08
3
[BUG] clear ACL-s on destination
Destroy ACL-s on destination when no ACL-s differens between source and destination. Bug is somehow related with function send_file_name() called with negative file descriptor f. There is no such bug in 2.6.9 version, but there options "-X -A --deleted" can't be used (we have "Internal error: wrong write used in receiver."). If I fix this, avoid calling send_acl() &