(main): Mention lock file name in error message.
This commit is contained in:
parent
f1d71b2f75
commit
d0776f5c89
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue