Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added support for 64 bit file offsets under Solaris 2.6. Not tested
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
cbda40e
..
c0e15d6
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-273,9
+273,9
@@
oom:
static char *get_local_name(struct file_list *flist,char *name)
{
static char *get_local_name(struct file_list *flist,char *name)
{
-
struct stat
st;
+
STRUCT_STAT
st;
- if (stat(name,&st) == 0) {
+ if (
do_
stat(name,&st) == 0) {
if (S_ISDIR(st.st_mode)) {
if (chdir(name) != 0) {
fprintf(FERROR,"chdir %s : %s (1)\n",name,strerror(errno));
if (S_ISDIR(st.st_mode)) {
if (chdir(name) != 0) {
fprintf(FERROR,"chdir %s : %s (1)\n",name,strerror(errno));