From 6811647e205fc1e9c24bf58e08124f3f24662e16 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 18 Aug 2011 13:05:27 +0000 Subject: [PATCH] mtree: skip all major-0 devices, not just (0,1) --- etc/mtree.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/mtree.sh b/etc/mtree.sh index 706306e7a..36e6767c8 100755 --- a/etc/mtree.sh +++ b/etc/mtree.sh @@ -16,8 +16,8 @@ do dir="`echo $line | awk '{ print $4 }'`" mkdir -p $dir targetdev="`stat -f %d $dir/.`" - if [ $targetdev -eq 1 ] - then echo "skipping $dir properties" + if [ $targetdev -lt 256 ] + then echo "skipping non-dev $dir properties" else chown $owner $dir chmod $mode $dir chgrp $group $dir -- 2.44.0