HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81f8258
)
(main): Fatal if hard links cannot be created.
author
Chong Yidong
<cyd@stupidchicken.com>
Thu, 1 Jan 2009 09:34:28 +0000
(09:34 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Thu, 1 Jan 2009 09:34:28 +0000
(09:34 +0000)
lib-src/movemail.c
patch
|
blob
|
blame
|
history
diff --git
a/lib-src/movemail.c
b/lib-src/movemail.c
index
7f9026d
..
eeb253a
100644
(file)
--- 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;