diff --git a/bind.spec b/bind.spec index a201acf..882f5d2 100644 --- a/bind.spec +++ b/bind.spec @@ -20,7 +20,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv Name: bind License: ISC Version: 9.6.1 -Release: 5.%{PATCHVER}%{?dist} +Release: 6.%{PATCHVER}%{?dist} Epoch: 32 Url: http://www.isc.org/products/BIND/ Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -588,6 +588,9 @@ rm -rf ${RPM_BUILD_ROOT} %ghost %{chroot_prefix}/etc/localtime %changelog +* Mon Sep 21 2009 Adam Tkac 32:9.6.1-6.P1 +- determine file size via `stat` instead of `ls` (#523682) + * Thu Sep 15 2009 Adam Tkac 32:9.6.1-5.P1 - fix libs postun section again (#514728) - improve chroot related documentation (#507795) diff --git a/named.init b/named.init index 0d40dfb..12540a2 100755 --- a/named.init +++ b/named.init @@ -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