Displaying 9 results from an estimated 9 matches for "chmod_bits".
2005 Jul 26
1
itemize() needs to use CHMOD_BITS (patch)
When syncing from Linux to Aix --itemize-changes with --perms lists
directories every time because the high-order st_mode bits for
directories differ between the two systems, and itemize() isn't masking
them with CHMOD_BITS. Here is a fix, tested with 2.6.6pre1.
PS: I'm not subscribed to this mailing list, please Cc: if you need
more info from me. Thanks.
--- generator.c.~1~ Thu Jun 30 13:03:14 2005
+++ generator.c Tue Jul 26 12:51:11 2005
@@ -327,7 +327,8 @@
&& (!(iflags & ITEM_XNAME_FOL...
2004 Mar 05
2
Problem with --link-dest when syncing AIX to Linux
Hello,
i'm using rsync 2.6.0 for daily-syncing some remote AIX 5.2 machine to a
local linux (RH 7.3) with using the --link-dest option for saving space
on incremental backups.
Even if there are no changes on the AIX machine, all files are newly
transferred on every new sync.
My test scenario (actisi=remote aix machine, actisa=local linux machine):
=====> Initial rsync
[mma@actisa
2004 Sep 15
0
[Bug 1764] New: dry-run does not show changes in owner / group, permission, or timestamp
...);
+ return 0;
+ }
if (verbose > 2) {
if (change_uid) {
rprintf(FINFO,
@@ -191,6 +198,10 @@
#ifdef HAVE_CHMOD
if (!S_ISLNK(st->st_mode)) {
if ((st->st_mode & CHMOD_BITS) != (file->mode & CHMOD_BITS)) {
+ if (dry_run) {
+ rprintf(FINFO,"chmod: %s\n",fname);
+ return 0;
+ }
updated = 1;
if (do_chmod(fname,(f...
2003 Feb 08
1
compare st_mode & 07777, or Aix dirs always differ
...e/roderick/.diff-exclude -u rsync-2.5.5/rsync.c rsync/rsync.c
--- rsync-2.5.5/rsync.c Thu Dec 20 10:33:13 2001
+++ rsync/rsync.c Fri Feb 7 10:12:50 2003
@@ -203,7 +203,7 @@
#ifdef HAVE_CHMOD
if (!S_ISLNK(st->st_mode)) {
- if (st->st_mode != file->mode) {
+ if ((st->st_mode & CHMOD_BITS) != (file->mode & CHMOD_BITS)) {
updated = 1;
if (do_chmod(fname,file->mode) != 0) {
rprintf(FERROR,"failed to set permissions on %s : %s\n",
diff -r -X /home/roderick/.diff-exclude -u rsync-2.5.5/rsync.h rsync/rsync.h
--- rsync-2.5.5/rsync.h Mon Mar 25 02:29:43 200...
2006 Mar 20
1
Rsync acl patch 1.113 compilation problems on cygwin
Hi,
Recently, there have been some fundamental achievements regarding
acl-support on the cygwin platform. I thought that it would be convenient to
offer an acl-patch enabled rsync as a part of the cwrsync package (a yet
another minimalist rsync on cygwin solution). I get some compilation errors.
What I did:
- Downloaded acl patch v1.113 from rsync site
- Run commands below In the rsync source
2006 Jun 02
3
[PATCH] --omit-dir-changes, qsort<>mergesort issues
...01 -0000
@@ -45,6 +45,7 @@
extern int preserve_gid;
extern int preserve_times;
extern int omit_dir_times;
+extern int omit_dir_changes;
extern int delete_mode;
extern int delete_before;
extern int delete_during;
@@ -348,10 +349,11 @@
iflags |= ITEM_REPORT_TIME;
if ((file->mode & CHMOD_BITS) != (st->st_mode & CHMOD_BITS))
iflags |= ITEM_REPORT_PERMS;
- if (preserve_uid && am_root && file->uid != st->st_uid)
+ if (preserve_uid && am_root && file->uid != st->st_uid
+ && !(S_ISDIR(st->st_mode) && omit_dir_ch...
2003 Feb 19
0
FW: compare st_mode & 07777, or Aix dirs always differ
...use a mask of those 3 macros with
0777; any implementation that doesn't make the file permission bits the low-order 9 bits with
their usual definition is insane.
Actually, I think the original definition (below), is just fine, as long as the non-POSIX-96
macro S_ISVTX is handled.
#define CHMOD_BITS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
We already define ACCESSPERMS as 0777 in rsync.h, so I used that macro instead of the 3 S_IRWXx
macros. I applied this change, and I also update the call to do_chmod in rsync.c to also mask
down the bits. rsync will no longer play wi...
2012 Jun 09
2
[patch] NFSv4/ZFS ACLs
This is a PoC patch for NFSv4/ZFS ACLs.
The objective of the patch is that rsync --acls support NFSv4/ZFS ACLs
without requiring a new command line option
NFSv4 ACLs can't be represented using POSIX draft ACLs, if an NFSv4 ACL is
present a separate POSIX draft ACL will not be present and there are new
APIs
to access NFSv4 ACLs. So we need to distinguish between NFSv4 ACLs and
POSIX
ACLs in
2008 Feb 15
4
Revised flags patch
...;
+#endif
if (do_lchown(fname,
change_uid ? (uid_t)F_OWNER(file) : sxp->st.st_uid,
change_gid ? (gid_t)F_GROUP(file) : sxp->st.st_gid) != 0) {
@@ -457,7 +509,13 @@ int set_file_attrs(const char *fname, st
#ifdef HAVE_CHMOD
if (!BITS_EQUAL(sxp->st.st_mode, new_mode, CHMOD_BITS)) {
- int ret = am_root < 0 ? 0 : do_chmod(fname, new_mode);
+ int ret = 0;
+ if (am_root >= 0) {
+#ifdef SUPPORT_FLAGS
+ make_mutable(fname, sxp->st.st_mode, sxp->st.st_flags);
+#endif
+ ret = do_chmod(fname, new_mode);
+ }
if (ret < 0) {
rsyserr(FERROR_XFER, errno,...