summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2008-02-14 17:17:33 +0100
committerVictor Lowther <victor.lowther@gmail.com>2008-02-16 14:33:08 -0600
commit3a8459c883ef0e2730278fe23f873f4c3c6912c2 (patch)
tree882969ba33f0c469bb3472e802ed33589d5b31df
parent7f51729e23cfb0906ddd37d4bb24b8d26653d06e (diff)
Fix inverse file owner check in init_logfile()
-rw-r--r--pm/functions.in2
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