Wayne Davison
|
ebd33e0cea
|
Use the new HAVE_LSEEK64 define.
|
2005-04-06 02:08:21 +00:00 |
|
Wayne Davison
|
0dd046d36f
|
Don't check defined-ness of SIZEOF_OFF64_T.
|
2005-02-14 00:58:10 +00:00 |
|
Wayne Davison
|
4f5b0756df
|
John E. Malmberg convinced me to standardize on #ifs for defined
values instead of non-zero.
|
2005-02-14 00:53:43 +00:00 |
|
Wayne Davison
|
25e1181466
|
Use new USE_STAT64_FUNCS define.
|
2005-01-28 20:33:55 +00:00 |
|
Wayne Davison
|
1164f67827
|
Make use of new HAVE_STRUCT_STAT64 define.
|
2005-01-28 20:15:08 +00:00 |
|
Wayne Davison
|
df6933406f
|
Got rid of unused mmap section.
|
2005-01-28 17:06:41 +00:00 |
|
Wayne Davison
|
d4daa7b68c
|
Changed HAVE_OFF64_T to SIZEOF_OFF64_T.
|
2005-01-28 16:21:37 +00:00 |
|
Wayne Davison
|
0957a7463e
|
When SUPPORT_LINKS is not defined, we now go ahead and provide
the do_lstat() function and just have it call do_stat().
|
2005-01-19 19:29:20 +00:00 |
|
Paul Green
|
58af2f958c
|
Fix typo in handling of lchown when the host operating system does
not implement it. It should get mapped to chown.
|
2005-01-18 21:19:42 +00:00 |
|
Wayne Davison
|
051547603a
|
Moved kluged (conditional) define of lchown from rsync.h to syscall.c.
|
2005-01-03 21:03:33 +00:00 |
|
Wayne Davison
|
da6eb9d123
|
Improved do_mknod() so that it handles creating a fifo file
and a socket file when mknod() itself does not.
|
2004-10-01 06:56:14 +00:00 |
|
Wayne Davison
|
3267d6a9ce
|
Some systems need do_mkstemp() to use setmode() to set O_BINARY.
|
2004-10-01 02:34:22 +00:00 |
|
Wayne Davison
|
6dcb93208d
|
Don't use mkstemp() if the OS has open64() but not mkstemp64().
|
2004-08-02 21:56:07 +00:00 |
|
Wayne Davison
|
7a27e9b599
|
Don't use ENOMSG -- it's not portable.
|
2004-02-18 22:33:21 +00:00 |
|
Wayne Davison
|
cfeed4da95
|
- If we return an error because of dry_run being set, we now set errno.
- The do_mkstemp() routine now preserves the errno value from fchmod()
if that call fails.
- Improved the CHECK_RO macro stuff.
|
2004-02-17 23:00:00 +00:00 |
|
Wayne Davison
|
4068d8617d
|
We no longer munge a double-leading slash in do_open() because we
shouldn't generate a path with a double-leading slash anymore.
|
2004-02-17 22:49:19 +00:00 |
|
Wayne Davison
|
e106de49c8
|
Tweaked the O_BINARY code to the latest idiom.
|
2003-03-30 23:00:51 +00:00 |
|
Wayne Davison
|
855decd3a7
|
Added back the O_BINARY #ifdef.
|
2003-01-26 20:09:02 +00:00 |
|
David Dykstra
|
536b84680b
|
Open config files in text mode when O_TEXT is defined. This helps on
Cygwin when the config files are on a filesystem that is mounted in
binary mode. Patch from Ville Herva.
|
2003-01-26 03:46:54 +00:00 |
|
David Dykstra
|
f0b4fdaf5e
|
Ignore errors from chmod when --preserve-perms/-p/-a are not set.
Gnu cp behaves the same way.
|
2003-01-21 00:58:50 +00:00 |
|
Martin Pool
|
c127e8aaec
|
Add a test case for trim_trailing_slashes, and make it handle other cases.
|
2002-03-25 03:51:17 +00:00 |
|
Martin Pool
|
bf4e725d5d
|
Code that was meant to trim trailing slashes from mkdir() paths
actually did not; fix it.
|
2002-03-25 03:29:47 +00:00 |
|
Martin Pool
|
ded8347d6b
|
Cope with BSD systems on which mkdir() will not accept a trailing
slash.
<http://www.opensource.apple.com/bugs/X/BSD%20Kernel/2734739.html>
|
2002-02-18 22:44:23 +00:00 |
|
Martin Pool
|
25f2cb3d6b
|
Fix for <http://rsync.samba.org/cgi-bin/rsync/incoming?id=3750>
temp files must be opened through do_open so that binary modes is used
on cygwin. (Chris Boucher)
|
2002-01-14 00:16:51 +00:00 |
|
Andrew Tridgell
|
f62c17e378
|
use mkstemp on systems where it is secure
|
2001-05-02 08:33:18 +00:00 |
|
Martin Pool
|
18c71e96f8
|
Doc.
|
2001-02-23 01:45:46 +00:00 |
|
Andrew Tridgell
|
b0f3f5784c
|
open on paths starting with // fails on win32
|
2000-01-23 03:00:27 +00:00 |
|
David Dykstra
|
3420c8e6e0
|
Fixed bug introduced by calling do_open() for O_RDONLY files. Changed it
so the check for dry_run and CHECK_RO are not done when flags is O_RDONLY.
Only do the adding of O_BINARY, which was the intention.
|
1999-11-04 15:43:38 +00:00 |
|
Andrew Tridgell
|
2b086e033c
|
paranoia change - treat list_only like read_only and refuse all
syscalls that might change the filesystem. This shouldn't be needed,
but I like paranoid coding :)
|
1998-12-05 01:56:45 +00:00 |
|
David Dykstra
|
a926daecbf
|
Always add the O_BINARY flag in do_open if it is defined, for Windows.
Suggestion from Mart.Laak@hansa.ee
|
1998-11-24 19:10:21 +00:00 |
|
Andrew Tridgell
|
bb0f7089fe
|
check for munmap as well as mmap. NextStep only has mmap in standard
libs
|
1998-05-26 14:18:59 +00:00 |
|
Andrew Tridgell
|
754d120c98
|
use mmap() for files of any size. This should be much more buffer
cache friendly.
|
1998-05-21 05:52:37 +00:00 |
|
Andrew Tridgell
|
f0fca04e4e
|
first vesrion of working socket based rsync. It still needs a lot of
work, but at least it works :-)
|
1998-05-09 13:58:54 +00:00 |
|
Andrew Tridgell
|
f28ee65baa
|
damn solaris doesn't prototype it's functions correctly. grrr.
|
1998-05-06 07:35:37 +00:00 |
|
Andrew Tridgell
|
59503278bf
|
better test for solaris broken readdir
|
1998-05-06 07:18:06 +00:00 |
|
Andrew Tridgell
|
d6e6ecbdbf
|
handle broken readdir() on Solaris 2.6 (it returns the name offset by
2 characters!)
|
1998-05-06 07:00:38 +00:00 |
|
Andrew Tridgell
|
73233f0f12
|
add support for lseek64() under solaris 2.6
|
1998-05-06 06:34:18 +00:00 |
|
Andrew Tridgell
|
efb2f6bf62
|
use floating point for printout of stats - this wrks on machines
without long long but with a 64 bit off_t
|
1998-05-06 06:07:06 +00:00 |
|
Andrew Tridgell
|
bcacc18bdf
|
added support for 64 bit file offsets under Solaris 2.6. Not tested
yet.
|
1998-05-06 05:43:36 +00:00 |
|
Andrew Tridgell
|
1b2d733af2
|
a couple more system calls wrapped in syscall.c
|
1998-04-05 06:26:24 +00:00 |
|
Andrew Tridgell
|
f92ef572b9
|
check a few HAVE_* macros
|
1998-03-24 06:42:11 +00:00 |
|
Andrew Tridgell
|
7308bd66e0
|
added chmod() and chown() to syscall.c
|
1998-03-24 06:39:16 +00:00 |
|
Andrew Tridgell
|
31e125226d
|
added wrappers around all the system calls that can change what is on
disk. The wrappers check for dry_run.
|
1998-03-23 13:25:30 +00:00 |
|