Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
1d39a603
Commit
1d39a603
authored
Mar 24, 2017
by
Patrick Steinhardt
Committed by
GitHub
Mar 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4175 from libgit2/ethomson/dont_trunc_and_excl
git_futils: don't O_EXCL and O_TRUNC
parents
fa86a095
4a26915d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/fileops.c
+2
-2
No files found.
src/fileops.c
View file @
1d39a603
...
...
@@ -66,8 +66,8 @@ int git_futils_creat_withpath(const char *path, const mode_t dirmode, const mode
int
git_futils_creat_locked
(
const
char
*
path
,
const
mode_t
mode
)
{
int
fd
=
p_open
(
path
,
O_WRONLY
|
O_CREAT
|
O_
TRUNC
|
O_EXCL
|
O_BINARY
|
O_CLOEXEC
,
mode
);
int
fd
=
p_open
(
path
,
O_WRONLY
|
O_CREAT
|
O_
EXCL
|
O_BINARY
|
O_CLOEXEC
,
mode
);
if
(
fd
<
0
)
{
int
error
=
errno
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment