summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-08-05 20:19:40 +0000
committerRichard M. Stallman <rms@gnu.org>1995-08-05 20:19:40 +0000
commit72e092912cb45c3ac7edbe95dd432cfeb2e656be (patch)
treec536b5d1c9bc20593c23950b579db369033cc732 /lib-src
parentae1f3f19b4034dae588e6dc0f3ca51bffc59e0cb (diff)
downloademacs-72e092912cb45c3ac7edbe95dd432cfeb2e656be.tar.gz
(main): Mention lock file name in error message.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/movemail.c6
1 files changed, 5 insertions, 1 deletions
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);