From: Chong Yidong Date: Thu, 1 Jan 2009 09:34:28 +0000 (+0000) Subject: (main): Fatal if hard links cannot be created. X-Git-Tag: emacs-pretest-23.0.90~760 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=097e9c90ee05614467d54f06dc6f8910c160d575;p=emacs.git (main): Fatal if hard links cannot be created. --- diff --git a/lib-src/movemail.c b/lib-src/movemail.c index 7f9026d89c7..eeb253a585e 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -341,6 +341,13 @@ main (argc, argv) close (desc); tem = link (tempname, lockname); + +#ifdef EPERM + if (tem < 0 && errno == EPERM) + fatal ("Unable to create hard link between %s and %s", + tempname, lockname); +#endif + unlink (tempname); if (tem >= 0) break;