rpms/pm-utils/devel pm-utils-0.99.4-logfile.patch,NONE,1.1

Till Maas (till) fedora-extras-commits at redhat.com
Wed Sep 19 23:17:18 UTC 2007


Author: till

Update of /cvs/pkgs/rpms/pm-utils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30276

Added Files:
	pm-utils-0.99.4-logfile.patch 
Log Message:
missing patch


pm-utils-0.99.4-logfile.patch:

--- NEW FILE pm-utils-0.99.4-logfile.patch ---
There is no need to remove the logfile, because the ">" after exec in the next line
already truncates the logfile to zero length. Also removing is wrong, because it
destroys the selinux context of the logfile. Bugzilla Reports:
https://bugzilla.redhat.com/show_bug.cgi?id=237840
https://bugzilla.redhat.com/show_bug.cgi?id=238068

diff -up pm-utils-0.99.4/pm/functions.logfile pm-utils-0.99.4/pm/functions
diff -up pm-utils-0.99.4/pm/functions.logfile pm-utils-0.99.4/pm/functions
--- pm-utils-0.99.4/pm/functions.logfile	2007-05-15 16:55:58.000000000 +0200
+++ pm-utils-0.99.4/pm/functions	2007-09-20 00:53:51.000000000 +0200
@@ -137,7 +137,6 @@ do_suspend_hybrid()
 pm_main()
 {
 	if [ -n "$PM_LOGFILE" ]; then
-		[ -f "$PM_LOGFILE" ] && rm -f "$PM_LOGFILE"
 		exec > "$PM_LOGFILE" 2>&1
 	fi
 	take_suspend_lock || exit 1




More information about the fedora-extras-commits mailing list