OSDN Git Service
(root)
/
lha
/
lha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24954ac
)
* src/lhext.c (adjust_info): On Cygwin, execute permission should be set for .exe...
author
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 30 Dec 2002 19:39:55 +0000
(19:39 +0000)
committer
arai
<arai@6a8cc165-1e22-0410-a132-eb4e3f353aba>
Mon, 30 Dec 2002 19:39:55 +0000
(19:39 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@610
6a8cc165
-1e22-0410-a132-
eb4e3f353aba
src/lhext.c
patch
|
blob
|
history
diff --git
a/src/lhext.c
b/src/lhext.c
index
285c284
..
870394b
100644
(file)
--- a/
src/lhext.c
+++ b/
src/lhext.c
@@
-189,6
+189,15
@@
adjust_info(name, hdr)
chown(name, uid, gid);
}
}
+#if __CYGWIN__
+ else {
+ /* On Cygwin, execute permission should be set for .exe or .dll. */
+ mode_t m;
+
+ umask(m = umask(0)); /* get current umask */
+ chmod(name, 0777 & ~m);
+ }
+#endif
}
/* ------------------------------------------------------------------------ */