diff options
| author | Adam Tkac <atkac@fedoraproject.org> | 2009-09-21 10:52:09 +0000 |
|---|---|---|
| committer | Adam Tkac <atkac@fedoraproject.org> | 2009-09-21 10:52:09 +0000 |
| commit | b67005f4192d71827086edccd32c4377f4952583 (patch) | |
| tree | a7295b420840d328471b318729af8d322dad1b8b /named.init | |
| parent | 56c6be15dfd7f24e3ebdf48de7001ec1001a5c95 (diff) | |
- determine file size via `stat` instead of `ls` (#523682)bind-9_6_1-6_P1_fc11
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 |
