projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DT_UNKNOWN: do not fully trust existence of DT_UNKNOWN
[git.git]
/
entry.c
diff --git
a/entry.c
b/entry.c
index
15b34eb
..
410b758
100644
(file)
--- a/
entry.c
+++ b/
entry.c
@@
-60,7
+60,7
@@
static void remove_subtree(const char *path)
static int create_file(const char *path, unsigned int mode)
{
mode = (mode & 0100) ? 0777 : 0666;
static int create_file(const char *path, unsigned int mode)
{
mode = (mode & 0100) ? 0777 : 0666;
- return open(path, O_WRONLY | O_
TRUNC | O_
CREAT | O_EXCL, mode);
+ return open(path, O_WRONLY | O_CREAT | O_EXCL, mode);
}
static int write_entry(struct cache_entry *ce, const char *path, struct checkout *state)
}
static int write_entry(struct cache_entry *ce, const char *path, struct checkout *state)