(main): Mention lock file name in error message.
authorRichard M. Stallman <rms@gnu.org>
Sat, 5 Aug 1995 20:19:40 +0000 (20:19 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 5 Aug 1995 20:19:40 +0000 (20:19 +0000)
lib-src/movemail.c

index 83a9fed..fd33302 100644 (file)
@@ -237,7 +237,11 @@ main (argc, argv)
       /* Give up if cannot do that.  */
       desc = open (tempname, O_WRONLY | O_CREAT | O_EXCL, 0666);
       if (desc < 0)
-       pfatal_with_name ("lock file--see source file lib-src/movemail.c");
+       {
+         char *message = (char *) malloc (strlen (tempname) + 50);
+         sprintf (message, "%s--see source file lib-src/movemail.c");
+         pfatal_with_name (message);
+       }
       close (desc);
 
       tem = link (tempname, lockname);