summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2007-12-23 23:01:45 +0000
committerRichard Hughes <richard@hughsie.com>2007-12-23 23:01:45 +0000
commitaac703ae48779eab946664035c9e7aa2d079b43d (patch)
treec431cccfd05b300ddedc6255092c2d272edb514a /pm
parentca7e573f6eecf69148cb20d1868b0a72dfc6a78c (diff)
2007-12-23 Richard Hughes <richard@hughsie.com>
* pm/functions: 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
Diffstat (limited to 'pm')
-rwxr-xr-xpm/functions1
1 files changed, 0 insertions, 1 deletions
diff --git a/pm/functions b/pm/functions
index 62d7761..b370137 100755
--- a/pm/functions
+++ b/pm/functions
@@ -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