diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2009-09-21 10:38:47 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2009-09-21 10:38:47 +0000 |
| commit | b70aaadb538664b4548e6836bf1b5f6e50896b7c (patch) | |
| tree | bfb3420c1db9370b5685e4c97ec2b3cf7431a13c /named.init | |
| parent | e99cc3499f9be9e31fad2581105352acadee85fa (diff) | |
- determine file size via `stat` instead of `ls` (#523682)bind-9_7_0-0_4_a3_fc13
Diffstat (limited to 'named.init')
| -rwxr-xr-x | named.init | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -76,8 +76,7 @@ mount_chroot_conf() # If mount source is a file if ! [ -d "$all" ]; then # mount it only if it is not present in chroot or it is empty - if ! [ -e "$ROOTDIR$all" ] || - [ `ls -s "$ROOTDIR$all" | awk '{ print $1 };'` -eq 0 ]; then + if ! [ -e "$ROOTDIR$all" ] || [ `stat -c'%s' "$ROOTDIR$all"` -eq 0 ]; then touch "$ROOTDIR$all" mount --bind "$all" "$ROOTDIR$all" fi |
