Fixed the error message in lockit() when it fails to create tmp file.
[mmh] / sbr / lock_file.c
index d15c939..b1879b3 100644 (file)
@@ -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 */