aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/movemail.c
diff options
context:
space:
mode:
authorKenichi Handa2012-11-23 23:36:24 +0900
committerKenichi Handa2012-11-23 23:36:24 +0900
commit2aaec2d9be5cec44ea3b59cba476fd3e091f2fc9 (patch)
tree3711b97807201b7eeaa066003b1c3a4ce929e5bb /lib-src/movemail.c
parente1d276cbf9e18f13101328f56bed1a1c0a66e63a (diff)
parente7d0e5ee247a155a268ffbf80bedbe25e15b5032 (diff)
downloademacs-2aaec2d9be5cec44ea3b59cba476fd3e091f2fc9.tar.gz
emacs-2aaec2d9be5cec44ea3b59cba476fd3e091f2fc9.zip
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r--lib-src/movemail.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index cd329a110a8..264b3d292c6 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -96,13 +96,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
96#include <fcntl.h> 96#include <fcntl.h>
97#endif /* WINDOWSNT */ 97#endif /* WINDOWSNT */
98 98
99#ifndef F_OK
100#define F_OK 0
101#define X_OK 1
102#define W_OK 2
103#define R_OK 4
104#endif
105
106#ifdef WINDOWSNT 99#ifdef WINDOWSNT
107#include <sys/locking.h> 100#include <sys/locking.h>
108#endif 101#endif
@@ -335,11 +328,8 @@ main (int argc, char **argv)
335 328
336 tem = link (tempname, lockname); 329 tem = link (tempname, lockname);
337 330
338#ifdef EPERM 331 if (tem < 0 && errno != EEXIST)
339 if (tem < 0 && errno == EPERM) 332 pfatal_with_name (lockname);
340 fatal ("Unable to create hard link between %s and %s",
341 tempname, lockname);
342#endif
343 333
344 unlink (tempname); 334 unlink (tempname);
345 if (tem >= 0) 335 if (tem >= 0)