From d0776f5c896d161ad5fa5c115b4fb37cf98c7f27 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 5 Aug 1995 20:19:40 +0000 Subject: [PATCH] (main): Mention lock file name in error message. --- lib-src/movemail.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 83a9fed2acc..fd33302b9e6 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -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); -- 2.39.2