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:
a33857d
)
Only output major/minor info for a character/block device, not for
author
Wayne Davison
<wayned@samba.org>
Thu, 23 Sep 2004 05:33:48 +0000
(
05:33
+0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 23 Sep 2004 05:33:48 +0000
(
05:33
+0000)
a FIFO or a socket.
tls.c
patch
|
blob
|
blame
|
history
diff --git
a/tls.c
b/tls.c
index
8c2a421
..
89b6445
100644
(file)
--- a/
tls.c
+++ b/
tls.c
@@
-113,7
+113,7
@@
static void list_file(const char *fname)
/* TODO: Perhaps escape special characters in fname? */
printf("%s ", permbuf);
- if (
IS_DEVICE
(buf.st_mode)) {
+ if (
S_ISCHR(buf.st_mode) || S_ISBLK
(buf.st_mode)) {
printf("%5ld,%6ld",
(long)major(buf.st_rdev),
(long)minor(buf.st_rdev));