summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
Diffstat (limited to 'pm')
-rw-r--r--pm/pm-functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index f69d5fa..aa9c2e6 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -188,7 +188,7 @@ init_logfile()
if [ -h "$1" ]; then
echo "$1 is a symbolic link, refusing to overwrite."
return 1
- elif [ ! -O "$1" ]; then
+ elif [ -f "$1" -a ! -O "$1" ]; then
echo "We do not own $1, refusing to overwrite."
return 1
elif [ -z "$1" ]; then