We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5512ac5 commit 53a3972Copy full SHA for 53a3972
sha1_file.c
@@ -125,17 +125,15 @@ int safe_create_leading_directories(char *path)
125
*pos = '/';
126
return -3;
127
}
128
- }
129
- else if (mkdir(path, 0777)) {
+ } else if (mkdir(path, 0777)) {
130
if (errno == EEXIST &&
131
!stat(path, &st) && S_ISDIR(st.st_mode)) {
132
; /* somebody created it since we checked */
133
} else {
134
135
return -1;
136
137
138
- else if (adjust_shared_perm(path)) {
+ } else if (adjust_shared_perm(path)) {
139
140
return -2;
141
0 commit comments