pluto:~# pm-suspend --quirk-s3-bios
We do not own /var/log/pm-suspend.log, refusing to overwrite.
[..]
Do 14. Feb 17:10:14 CET 2008: running /usr/lib/pm-utils/sleep.d/99video resume
pluto:~# ls -la /var/log/pm-suspend.log
-rw-r--r-- 1 root root 2213 14. Feb 03:08 /var/log/pm-suspend.log
pluto:~# id
uid=0(root) gid=0(root) Gruppen=0(root)


The file owner check in init_logfile has to be negated.

Please review and apply.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
From de728c80013a79820f9925b8b02c42501523a963 Mon Sep 17 00:00:00 2001
From: Michael Biebl <[EMAIL PROTECTED]>
Date: Thu, 14 Feb 2008 17:17:33 +0100
Subject: [PATCH] Fix inverse file owner check in init_logfile()

---
 pm/functions.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pm/functions.in b/pm/functions.in
index cf98e08..b08396c 100644
--- a/pm/functions.in
+++ b/pm/functions.in
@@ -177,7 +177,7 @@ init_logfile()
 	if [ -h "$1" ]; then
 		echo "$1 is a symbolic link, refusing to overwrite."
 		return 1
-	elif [ -O "$1" ]; then
+	elif [ ! -O "$1" ]; then
 		echo "We do not own $1, refusing to overwrite."
 		return 1
 	elif [ -z "$1" ]; then
-- 
1.5.4.1

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to