Show More
@@ -270,11 +270,16 b' static PyObject *dirstate_item_v2_data(d' | |||||
270 | #else |
|
270 | #else | |
271 | flags &= ~dirstate_flag_mode_exec_perm; |
|
271 | flags &= ~dirstate_flag_mode_exec_perm; | |
272 | #endif |
|
272 | #endif | |
|
273 | #ifdef S_ISLNK | |||
|
274 | /* This is for platforms with support for symlinks */ | |||
273 | if (S_ISLNK(mode)) { |
|
275 | if (S_ISLNK(mode)) { | |
274 | flags |= dirstate_flag_mode_is_symlink; |
|
276 | flags |= dirstate_flag_mode_is_symlink; | |
275 | } else { |
|
277 | } else { | |
276 | flags &= ~dirstate_flag_mode_is_symlink; |
|
278 | flags &= ~dirstate_flag_mode_is_symlink; | |
277 | } |
|
279 | } | |
|
280 | #else | |||
|
281 | flags &= ~dirstate_flag_mode_is_symlink; | |||
|
282 | #endif | |||
278 | return Py_BuildValue("iiii", flags, self->size, self->mtime_s, |
|
283 | return Py_BuildValue("iiii", flags, self->size, self->mtime_s, | |
279 | self->mtime_ns); |
|
284 | self->mtime_ns); | |
280 | }; |
|
285 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now