diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-10-01 04:12:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-10-01 04:12:30 +0000 |
commit | 7b8356d0bcc11d7681294afde83a18dfd46fa1ad (patch) | |
tree | 0e5688f015ad1184a349f806b168ac42ffb2440b /rsync.h | |
parent | 280cbb85375b7968e4f81c86ceb303c7f1ee563b (diff) | |
download | rsync-7b8356d0bcc11d7681294afde83a18dfd46fa1ad.tar.gz rsync-7b8356d0bcc11d7681294afde83a18dfd46fa1ad.tar.bz2 rsync-7b8356d0bcc11d7681294afde83a18dfd46fa1ad.zip |
- detect presence of remsh and use it instead of rsh
- handle directory ownership and permissions much better.
- fix bug where links caused the permissions of files to be
set incorrectly
- override the default umask in setting file permissions
- better handling -o and -D being passed to non-root users
- handle rsync to a destination of /
- fix the handling of mismatched file types at either end of the
link. For example, if the destination is a link and the source is not.
Diffstat (limited to 'rsync.h')
-rw-r--r-- | rsync.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -19,7 +19,13 @@ #define BLOCK_SIZE 700 #define RSYNC_RSH_ENV "RSYNC_RSH" + +#if HAVE_REMSH +#define RSYNC_RSH "remsh" +#else #define RSYNC_RSH "rsh" +#endif + #define RSYNC_NAME "rsync" #define BACKUP_SUFFIX "~" @@ -283,5 +289,21 @@ extern int errno; #define EWOULDBLOCK EAGAIN #endif +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif + +#ifndef STDOUT_FILENO +#define STDOUT_FILENO 1 +#endif + +#ifndef STDERR_FILENO +#define STDERR_FILENO 2 +#endif + +#ifndef S_IWUSR +#define S_IWUSR 0200 +#endif + #define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode)) |