summaryrefslogtreecommitdiff
path: root/source/ap/pm-utils/patches/init-logfile-append.patch
blob: 079782630eb8867451a6ff4ebd21af924e7d4d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- pm-utils-1.4.1/pm/pm-functions.in.old	2010-07-04 16:50:13.000000000 +0200
+++ pm-utils-1.4.1/pm/pm-functions.in	2010-12-07 16:48:39.555074652 +0100
@@ -271,7 +271,9 @@
 		return 1
 	fi
 	export LOGGING=true
-	exec > "$1" 2>&1
+	rm -f "$1"
+	touch "$1"
+	exec >> "$1" 2>&1
 }
 
 check_suspend() { [ -n "$SUSPEND_MODULE" ]; }