Displaying 20 results from an estimated 33 matches for "have_chmod".
Did you mean:
have_fchmod
2002 Jun 21
1
small security-related rsync extension
...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) && (buf.st_mode & (S_ISUID | S_ISGID))) {
X+ mode_t new_mode;
X+ new_mode =...
2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
...return rmdir(pathname);
}
-int do_open(char *pathname, int flags, mode_t mode)
+int do_open(const char * pathname, int flags, mode_t mode)
{
if (flags != O_RDONLY) {
if (dry_run) return -1;
@@ -90,7 +93,7 @@
return open(pathname, flags, mode);
}
-#if HAVE_CHMOD
+#ifdef HAVE_CHMOD
int do_chmod(const char *path, mode_t mode)
{
if (dry_run) return 0;
@@ -99,14 +102,14 @@
}
#endif
-int do_rename(char *fname1, char *fname2)
+int do_rename(const char *fname1, const char *fname2)
{
if (dry_run) return 0;
CHECK_RO
re...
2002 Dec 21
3
am I missing something, or are permissions always preserved?
They seem to be for me, even when I don't pass in the --perms flag. This
is a problem because I'm rsyncing to a samba mount with fixed
permissions.
Looking at rsync.c (for version 2.5.5) starting at line 204, I see this
code snippet:
#ifdef HAVE_CHMOD
if (!S_ISLNK(st->st_mode)) {
if (st->st_mode != file->mode) {
updated = 1;
if (do_chmod(fname,file->mode) != 0) {
rprintf(FERROR,"failed to set permissions on %s : %s\n",
fname,strerror(errno));...
2004 Sep 15
0
[Bug 1764] New: dry-run does not show changes in owner / group, permission, or timestamp
...if (dry_run) {
+ rprintf(FINFO,"chown: %s\n",fname);
+ 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;
+...
2010 Feb 12
1
[RFC] add support for fallocate()
...*pathname, int flags, mode_t mode)
return open(pathname, flags | O_BINARY, mode);
}
+#ifdef HAVE_FALLOCATE
+int do_fallocate(int fd, int mode, OFF_T offset, OFF_T len)
+{
+ RETURN_ERROR_IF(dry_run, 0);
+ RETURN_ERROR_IF_RO_OR_LO;
+ return fallocate(fd, mode, offset, len);
+}
+#endif
+
#ifdef HAVE_CHMOD
int do_chmod(const char *path, mode_t mode)
{
--
1.6.6.1
2003 Feb 08
1
compare st_mode & 07777, or Aix dirs always differ
...on
Aix that has the usual value of 0170000, so it wouldn't exclude the
problematic 0200000 bit.
diff -r -X /home/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...
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
2003 Dec 25
1
How to tell if option "with-acl-support" is compiledin Solaris smbd?
..._H
HAVE_UT_UT_EXIT
HAVE_UT_UT_ID
HAVE_UT_UT_NAME
HAVE_UT_UT_PID
HAVE_UT_UT_TIME
HAVE_UT_UT_TYPE
HAVE_UT_UT_USER
PUTUTLINE_RETURNS_UTMP
WITH_UTMP
HAVE_* Defines:
HAVE_ADDRTYPE_IN_KRB5_ADDRESS
HAVE_AP_OPTS_USE_SUBKEY
HAVE_ATEXIT
HAVE_BER_SCANF
HAVE_BZERO
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_CREAT64
HAVE_CRYPT
HAVE_CUPS
HAVE_DIRENT_D_OFF
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_EXPLICIT_LARGEFI...
2005 Nov 09
0
Samba 3.0.20b / AIX 5.3 / VFS Modules
...CB64
HAVE_AIO_CANCEL
HAVE_AIO_CANCEL64
HAVE_AIO_ERROR
HAVE_AIO_ERROR64
HAVE_AIO_FSYNC
HAVE_AIO_FSYNC64
HAVE_AIO_READ
HAVE_AIO_READ64
HAVE_AIO_RETURN
HAVE_AIO_RETURN64
HAVE_AIO_SUSPEND
HAVE_AIO_SUSPEND64
HAVE_AIO_WRITE
HAVE_AIO_WRITE64
HAVE_ATEXIT
HAVE_C99_VSNPRINTF
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_CLOSEDIR64
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_CREAT64
HAVE_CRYPT
HAVE_DEV64_T HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENDMNTENT
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL
HAVE_EXECL
HAVE_EXPLICIT_LARGEFI...
2007 Sep 24
2
Where is the tdbsam password database file?
...VE_UT_UT_TYPE
HAVE_UT_UT_USER
PUTUTLINE_RETURNS_UTMP
WITH_UTMP
HAVE_* Defines:
HAVE_ADDRTYPE_IN_KRB5_ADDRESS
HAVE_AP_OPTS_USE_SUBKEY
HAVE_ASPRINTF
HAVE_ASPRINTF_DECL
HAVE_ATEXIT
HAVE_BACKTRACE_SYMBOLS
HAVE_BER_SCANF
HAVE_BOOL
HAVE_BZERO
HAVE_C99_VSNPRINTF
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_COMPARISON_FN_T
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_CREAT64
HAVE_CRYPT
HAVE_CUPS
HAVE_DECL_ASPRINTF
HAVE_DECL_RL_EVENT_HOOK
HAVE_DECL_SNPRINTF
HAVE_DECL_VASPRINTF
HAVE_DECL_VSNPRINTF
HAVE_DEVICE_MAJOR_FN
HAVE...
2005 Oct 19
1
samba with ADS. winbindd ignore for user authentication
...UTIME_H
UTMP Options:
HAVE_UTMP_H
HAVE_UT_UT_HOST
HAVE_UT_UT_NAME
HAVE_UT_UT_TIME
WITH_UTMP
HAVE_* Defines:
HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
HAVE_AP_OPTS_USE_SUBKEY
HAVE_ASPRINTF
HAVE_ASPRINTF_DECL
HAVE_ATEXIT
HAVE_BER_SCANF
HAVE_C99_VSNPRINTF
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_CONNECT
HAVE_COPY_AUTHENTICATOR
HAVE_CRYPT
HAVE_DEVICE_MAJOR_FN
HAVE_DEVICE_MINOR_FN
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENCTYPE_ARCFOUR_HMAC_MD5
HAVE_ENDNETGRENT
HAVE_ERRNO_DECL...
2003 Mar 11
0
PATCH: rsyncd.conf permission options
...--- rsync-2.5.5/rsync.c Thu Dec 20 16:33:13 2001
+++ rsync-2.5.5-umask/rsync.c Sun Mar 2 22:26:40 2003
@@ -150,6 +150,8 @@
int updated = 0;
STRUCT_STAT st2;
int change_uid, change_gid;
+ extern int am_daemon;
+ extern int module_id;
if (dry_run) return 0;
@@ -203,9 +205,18 @@
#ifdef HAVE_CHMOD
if (!S_ISLNK(st->st_mode)) {
- if (st->st_mode != file->mode) {
+ mode_t mode = file->mode; /* file->mode shouldn't be modified */
+
+ if (am_daemon) {
+ if(S_ISDIR(st->st_mode)) {
+ mode = ( mode & lp_directory_mask(module_id)) | lp_force_directory_mode(module_i...
2005 May 18
1
Samba Comple Problem on Solaris 2.8
...HAVE_UTMP_H
HAVE_UT_UT_EXIT
HAVE_UT_UT_ID
HAVE_UT_UT_NAME
HAVE_UT_UT_PID
HAVE_UT_UT_TIME
HAVE_UT_UT_TYPE
HAVE_UT_UT_USER
PUTUTLINE_RETURNS_UTMP
WITH_UTMP
HAVE_* Defines:
HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
HAVE_AP_OPTS_USE_SUBKEY
HAVE_ATEXIT
HAVE_BER_SCANF
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_COPY_AUTHENTICATOR
HAVE_CREAT64
HAVE_CRYPT
HAVE_DIRENT_D_OFF
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENCTYPE_ARCFOUR_HMAC_MD5
HAVE_ENDNETGRENT
HAVE_ER...
2005 May 07
0
force group broken in 3.0.14?
...HAVE_UT_UT_TIME
HAVE_UT_UT_TV
HAVE_UT_UT_TYPE
HAVE_UT_UT_USER
PUTUTLINE_RETURNS_UTMP
WITH_UTMP
HAVE_* Defines:
HAVE_ADDRTYPE_IN_KRB5_ADDRESS
HAVE_AP_OPTS_USE_SUBKEY
HAVE_ASPRINTF
HAVE_ASPRINTF_DECL
HAVE_ATEXIT
HAVE_BACKTRACE_SYMBOLS
HAVE_BER_SCANF
HAVE_C99_VSNPRINTF
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_CREAT64
HAVE_CRYPT
HAVE_CUPS
HAVE_DES_SET_KEY
HAVE_DEVICE_MAJOR_FN
HAVE_DEVICE_MINOR_FN
HAVE_DIRENT_D_OFF
HAVE_DLCLOSE
HAVE_DLERROR
HAVE_DLOPEN
HAVE_DLSYM
HAVE_DUP2
HAVE_ENDMNTENT
HAVE_E...
2017 Jun 08
0
2nd try: Lots of RPC-related compile errors (conflicting types, too many arguments, ...) trying to update Samba from 3.5 to 4.6
..._ATTR_GET
HAVE_ATTR_GETF
HAVE_ATTR_LIST
HAVE_ATTR_LISTF
HAVE_ATTR_REMOVE
HAVE_ATTR_REMOVEF
HAVE_ATTR_SET
HAVE_ATTR_SETF
HAVE_BACKTRACE_SYMBOLS
HAVE_BER_SCANF
HAVE_BER_SOCKBUF_ADD_IO
HAVE_BINDTEXTDOMAIN
HAVE_BLKCNT_T
HAVE_BLKSIZE_T
HAVE_BOOL
HAVE_BZERO
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_CLOCK_GETTIME
HAVE_CLOCK_MONOTONIC
HAVE_CLOCK_PROCESS_CPUTIME_ID
HAVE_CLOCK_REALTIME
HAVE_COMPARISON_FN_T
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_CREAT64
HAVE_CRYPT
HAVE_DECL_ASPRINTF
HAVE_DECL_KRB5_AUTH_CON_SET_REQ_CK...
2002 Apr 03
3
metadata in dryrun mode
As I reported a while back rsync doesn't handle metadata (permissions and
ownership) in dryrun mode.
I offered to make a patch and that offer still stands. I didn't have the
time for it until now and want to pick it up again. I had some ugly hack
back then but I want to redo it in a clean way.
I would like some input on my thoughts.
IMHO, it would be ideally if the check for dry_run
2008 Feb 15
4
Revised flags patch
...ags/config.h.in Fri Feb 15 19:33:09 2008
@@ -64,6 +64,9 @@
/* Define to 1 if vsprintf has a C99-compatible return value */
#undef HAVE_C99_VSNPRINTF
+/* Define to 1 if you have the `chflags' function. */
+#undef HAVE_CHFLAGS
+
/* Define to 1 if you have the `chmod' function. */
#undef HAVE_CHMOD
diff -brpu rsync-3.0.0pre9/configure.in rsync-3.0.0pre9-flags/configure.in
--- rsync-3.0.0pre9/configure.in Mon Feb 11 05:16:25 2008
+++ rsync-3.0.0pre9-flags/configure.in Fri Feb 15 19:33:09 2008
@@ -551,7 +551,7 @@ AC_CHECK_FUNCS(waitpid wait4 getcwd strd
memmove lchown vsnprintf snprintf...
2007 Jun 05
1
Samba unable to connect to ldap
..._UT_UT_USER
PUTUTLINE_RETURNS_UTMP
WITH_UTMP
HAVE_* Defines:
HAVE_ADDRTYPE_IN_KRB5_ADDRESS
HAVE_AP_OPTS_USE_SUBKEY
HAVE_ASPRINTF
HAVE_ASPRINTF_DECL
HAVE_ATEXIT
HAVE_BACKTRACE_SYMBOLS
HAVE_BER_SCANF
HAVE_BOOL
HAVE_BZERO
HAVE_C99_VSNPRINTF
HAVE_CAP_GET_PROC
HAVE_CHMOD
HAVE_CHOWN
HAVE_CHROOT
HAVE_COMPARISON_FN_T
HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
HAVE_CONNECT
HAVE_CREAT64
HAVE_CRYPT
HAVE_DECL_ASPRINTF
HAVE_DECL_RL_EVENT_HOOK
HAVE_DECL_SNPRINTF
HAVE_DECL_VASPRINTF
HAVE_DECL_VSNPRINTF
HAVE_DEVICE_MAJOR_FN
HAVE_DEVICE_MINOR...
2008 Mar 04
1
Several changes missing from [HEAD] fileflags.diff
...t; @@ -64,6 +64,9 @@
> /* Define to 1 if vsprintf has a C99-compatible return value */
> #undef HAVE_C99_VSNPRINTF
>
> +/* Define to 1 if you have the `chflags' function. */
> +#undef HAVE_CHFLAGS
> +
> /* Define to 1 if you have the `chmod' function. */
> #undef HAVE_CHMOD
>
> diff -up a/configure.sh b/configure.sh
> --- a/configure.sh
> +++ b/configure.sh
> @@ -14789,12 +14789,13 @@ fi
>
>
>
> +
> for ac_func in waitpid wait4 getcwd strdup chown chmod lchmod mknod
> mkfifo \
> fchmod fstat ftruncate strchr readlink link ut...
2004 Jul 10
2
Solaris username character limit issues.
Hello,
I've compiled Samba 3.0.4 with Heimdal 0.6.2 and all of the other
trimmings to join and ADS tree, which I have successfully done. Winbind
correctly pulls all of the username and group information from the ADS
tree and all is good.
However...
I seem to be running into a wall with the wonderful Solaris 8 character
username / groupname limit. Usernames with spaces or names longer than