rpms/xorg-x11-xfs/F-9 xfs.init,1.8,1.9 xorg-x11-xfs.spec,1.33,1.34

Adam Jackson ajax at fedoraproject.org
Mon Apr 13 19:04:49 UTC 2009


Author: ajax

Update of /cvs/pkgs/rpms/xorg-x11-xfs/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17141

Modified Files:
	xfs.init xorg-x11-xfs.spec 
Log Message:
* Mon Apr 13 2009 Adam Jackson <ajax at redhat.com> 1.0.5-2.1
- xfs.init: Fix mkdir race (#492517)



Index: xfs.init
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-xfs/F-9/xfs.init,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- xfs.init	27 Jul 2007 16:06:21 -0000	1.8
+++ xfs.init	13 Apr 2009 19:04:43 -0000	1.9
@@ -56,12 +56,12 @@
    FONT_UNIX_DIR=/tmp/.font-unix
    echo -n $"Starting $prog: "
    [ -x /usr/sbin/chkfontpath ] && buildfontlist
-   # Clean out .font-unix dir, and recreate it with the proper ownership and
-   # permissions.
-   rm -rf $FONT_UNIX_DIR
-   mkdir $FONT_UNIX_DIR
-   chown root:root $FONT_UNIX_DIR
-   chmod 1777 $FONT_UNIX_DIR
+   # Make sure .font-unix dir, exists.
+   if [ ! -d $FONT_UNIX_DIR ]
+   then
+       mkdir -m 1777 $FONT_UNIX_DIR || :
+       restorecon $FONT_UNIX_DIR 2>/dev/null || :
+   fi
    # Fix needed for SELinux for bug (#130421,130969)
    [ -x /sbin/restorecon ] && /sbin/restorecon $FONT_UNIX_DIR
 


Index: xorg-x11-xfs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xorg-x11-xfs/F-9/xorg-x11-xfs.spec,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- xorg-x11-xfs.spec	20 Feb 2008 08:14:11 -0000	1.33
+++ xorg-x11-xfs.spec	13 Apr 2009 19:04:43 -0000	1.34
@@ -1,7 +1,7 @@
 Summary: X.Org X11 xfs font server
 Name: xorg-x11-xfs
 Version: 1.0.5
-Release: 2%{?dist}
+Release: 2.1%{?dist}
 # NOTE: Remove Epoch line if package gets renamed
 Epoch: 1
 License: MIT/X11
@@ -244,6 +244,9 @@
 %{_mandir}/man1/xfsinfo.1x*
 
 %changelog
+* Mon Apr 13 2009 Adam Jackson <ajax at redhat.com> 1.0.5-2.1
+- xfs.init: Fix mkdir race (#492517)
+
 * Wed Feb 20 2008 Fedora Release Engineering <rel-eng at fedoraproject.org> - 1:1.0.5-2
 - Autorebuild for GCC 4.3
 




More information about the fedora-extras-commits mailing list