]> diplodocus.org Git - nmh/blobdiff - sbr/lock_file.c
I had forgotten that nesec_set_tls() has to be called AFTER the
[nmh] / sbr / lock_file.c
index f4d3902b1243cdb3a12e67c54770164228c3cd74..a8a98118d1b1e5194f51cda4765c6ccdfca5538b 100644 (file)
@@ -561,7 +561,7 @@ lockit (struct lockinfo *li)
     curlock = li->curlock;
 
     if ((tmpfile = m_mktemp(li->tmplock, &fd, NULL)) == NULL) {
     curlock = li->curlock;
 
     if ((tmpfile = m_mktemp(li->tmplock, &fd, NULL)) == NULL) {
-        advise(NULL, "unable to create temporary file in %s", get_temp_dir());
+        advise(NULL, "unable to create temporary file in %s", li->tmplock);
        return -1;
     }
 
        return -1;
     }