Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30f337c
)
Finished the last_* renameing and fixed a cast..
author
J.W. Schultz
<jw@samba.org>
Fri, 9 Jan 2004 13:55:56 +0000
(13:55 +0000)
committer
J.W. Schultz
<jw@samba.org>
Fri, 9 Jan 2004 13:55:56 +0000
(13:55 +0000)
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
9b7dcf5
..
46079d9
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-357,7
+357,7
@@
static void send_file_entry(struct file_struct *file, int f,
unsigned short flags;
static time_t modtime;
static mode_t mode;
unsigned short flags;
static time_t modtime;
static mode_t mode;
- static DEV64_T
last_rdev;
+ static DEV64_T
rdev; /* just high bytes after p28 */
static uid_t uid;
static gid_t gid;
static DEV64_T dev;
static uid_t uid;
static gid_t gid;
static DEV64_T dev;
@@
-385,19
+385,19
@@
static void send_file_entry(struct file_struct *file, int f,
mode = file->mode;
if (preserve_devices) {
if (protocol_version < 28) {
mode = file->mode;
if (preserve_devices) {
if (protocol_version < 28) {
- if (IS_DEVICE(mode) && file->rdev ==
last_
rdev) {
+ if (IS_DEVICE(mode) && file->rdev == rdev) {
/* Set both flags so that the test when
* writing the data is simpler. */
flags |= SAME_RDEV_pre28|SAME_HIGH_RDEV;
}
else
/* Set both flags so that the test when
* writing the data is simpler. */
flags |= SAME_RDEV_pre28|SAME_HIGH_RDEV;
}
else
-
last_
rdev = file->rdev;
+ rdev = file->rdev;
}
else if (IS_DEVICE(mode)) {
}
else if (IS_DEVICE(mode)) {
- if ((file->rdev & ~0xFF) ==
last_
rdev)
+ if ((file->rdev & ~0xFF) == rdev)
flags |= SAME_HIGH_RDEV;
else
flags |= SAME_HIGH_RDEV;
else
-
last_
rdev = file->rdev & ~0xFF;
+ rdev = file->rdev & ~0xFF;
}
}
if (file->uid == uid)
}
}
if (file->uid == uid)
@@
-519,7
+519,7
@@
static void receive_file_entry(struct file_struct **fptr,
{
static time_t modtime;
static mode_t mode;
{
static time_t modtime;
static mode_t mode;
- static DEV64_T rdev;
+ static DEV64_T rdev;
/* just high bytes after p28 */
static uid_t uid;
static gid_t gid;
static DEV64_T dev;
static uid_t uid;
static gid_t gid;
static DEV64_T dev;
@@
-613,7
+613,7
@@
static void receive_file_entry(struct file_struct **fptr,
file->rdev = (DEV64_T)read_int(f);
rdev = file->rdev & ~0xFF;
} else
file->rdev = (DEV64_T)read_int(f);
rdev = file->rdev & ~0xFF;
} else
- file->rdev =
(DEV64_T)(rdev | read_byte(f)
);
+ file->rdev =
rdev | (DEV64_T)read_byte(f
);
}
}
}
}