aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-07-21 15:29:45 +0000
committerBill Nottingham <notting@redhat.com>2006-07-21 15:29:45 +0000
commit7e86677bbb98ebc5cd4b17b5e620b7bd16da4657 (patch)
treeb6fba9b8034a6541aa072c820fc182ce0392dff6
parent6a8552e02f09eaa1c4d091e00e714a56f178d726 (diff)
downloadinitscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.tar
initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.tar.gz
initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.tar.bz2
initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.tar.xz
initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.zip
deref symlinks in get_numeric_dev
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 5366b326..19a86c16 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -552,7 +552,7 @@ get_numeric_dev() {
if [ "$1" == "hex" ]; then
fmt="%x:%x"
fi
- ls -l "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
+ ls -lH "$2" | awk '{ sub(/,/, "", $5); printf("'"$fmt"'", $5, $6); }'
) 2>/dev/null
}