diff options
| author | Chong Yidong <cyd@stupidchicken.com> | 2009-01-01 09:34:28 +0000 |
|---|---|---|
| committer | Chong Yidong <cyd@stupidchicken.com> | 2009-01-01 09:34:28 +0000 |
| commit | 097e9c90ee05614467d54f06dc6f8910c160d575 (patch) | |
| tree | f50290dbc173f5fb5ee562afcd71b41912386af8 /lib-src/movemail.c | |
| parent | 81f82586c406a8d9d6cf09c3d3236c0778ab31d0 (diff) | |
| download | emacs-097e9c90ee05614467d54f06dc6f8910c160d575.tar.gz | |
(main): Fatal if hard links cannot be created.
Diffstat (limited to 'lib-src/movemail.c')
| -rw-r--r-- | lib-src/movemail.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; |
