X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/630e3c408b32b94bfca0420fc9f00be11b685a00..b4713295919e1f0c91c0e6bca7552b69dcccd05b:/tls.c 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));