rpms/bind/F-12 bind.spec,1.325,1.326 named.init,1.74,1.75

Adam Tkac atkac at fedoraproject.org
Mon Sep 21 10:41:04 UTC 2009


Author: atkac

Update of /cvs/pkgs/rpms/bind/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4253

Modified Files:
	bind.spec named.init 
Log Message:
- determine file size via `stat` instead of `ls` (#523682)



Index: bind.spec
===================================================================
RCS file: /cvs/pkgs/rpms/bind/F-12/bind.spec,v
retrieving revision 1.325
retrieving revision 1.326
diff -u -p -r1.325 -r1.326
--- bind.spec	15 Sep 2009 15:34:16 -0000	1.325
+++ bind.spec	21 Sep 2009 10:41:04 -0000	1.326
@@ -20,7 +20,7 @@ Summary:  The Berkeley Internet Name Dom
 Name:     bind
 License:  ISC
 Version:  9.6.1
-Release:  10.%{PATCHVER}%{?dist}
+Release:  11.%{PATCHVER}%{?dist}
 Epoch:    32
 Url:      http://www.isc.org/products/BIND/
 Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -585,6 +585,9 @@ rm -rf ${RPM_BUILD_ROOT}
 %ghost %{chroot_prefix}/etc/localtime
 
 %changelog
+* Mon Sep 21 2009 Adam Tkac <atkac redhat com> 32:9.6.1-11.P1
+- determine file size via `stat` instead of `ls` (#523682)
+
 * Thu Sep 15 2009 Adam Tkac <atkac redhat com> 32:9.6.1-10.P1
 - improve chroot related documentation (#507795)
 - add NetworkManager dispatcher script to reload named when network interface is


Index: named.init
===================================================================
RCS file: /cvs/pkgs/rpms/bind/F-12/named.init,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -p -r1.74 -r1.75
--- named.init	15 Sep 2009 15:34:16 -0000	1.74
+++ named.init	21 Sep 2009 10:41:04 -0000	1.75
@@ -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




More information about the fedora-extras-commits mailing list