From 4e4c5eeaffc0ff9e341c1562a02c1749a9a06dbe Mon Sep 17 00:00:00 2001 From: Marcin Cieslak Date: Tue, 10 Feb 2015 14:18:05 +0000 Subject: [PATCH 1/1] Fixed the error message in lockit() when it fails to create tmp file. --- sbr/lock_file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbr/lock_file.c b/sbr/lock_file.c index d15c939..b1879b3 100644 --- a/sbr/lock_file.c +++ b/sbr/lock_file.c @@ -429,8 +429,10 @@ lockit(struct lockinfo *li) curlock = li->curlock; tmplock = li->tmplock; - if ((fd = mkstemp(tmplock)) == -1) + if ((fd = mkstemp(tmplock)) == -1) { + advise(NULL, "unable to create temporary file in %s", tmplock); return -1; + } #if 0 /* write our process id into lock file */ -- 1.7.10.4