summaryrefslogtreecommitdiff
path: root/tls.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-09-23 05:33:48 +0000
committerWayne Davison <wayned@samba.org>2004-09-23 05:33:48 +0000
commit48d3ff94c99983d40a33c4525fd9293be30596a5 (patch)
tree21ce819456164d6c15d65305791a07a26f71bdd1 /tls.c
parenta33857da093f5f5c5b2273ee083c3e5b9109efad (diff)
downloadrsync-48d3ff94c99983d40a33c4525fd9293be30596a5.tar.gz
rsync-48d3ff94c99983d40a33c4525fd9293be30596a5.tar.bz2
rsync-48d3ff94c99983d40a33c4525fd9293be30596a5.zip
Only output major/minor info for a character/block device, not for
a FIFO or a socket.
Diffstat (limited to 'tls.c')
-rw-r--r--tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tls.c b/tls.c
index 8c2a421b..89b64451 100644
--- 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));