diff options
author | Bill Nottingham <notting@redhat.com> | 2006-07-21 15:29:45 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-07-21 15:29:45 +0000 |
commit | 7e86677bbb98ebc5cd4b17b5e620b7bd16da4657 (patch) | |
tree | b6fba9b8034a6541aa072c820fc182ce0392dff6 /rc.d/init.d/functions | |
parent | 6a8552e02f09eaa1c4d091e00e714a56f178d726 (diff) | |
download | initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.tar initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.tar.gz initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.tar.bz2 initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.tar.xz initscripts-7e86677bbb98ebc5cd4b17b5e620b7bd16da4657.zip |
deref symlinks in get_numeric_dev
Diffstat (limited to 'rc.d/init.d/functions')
-rwxr-xr-x | rc.d/init.d/functions | 2 |
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 } |