summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 940c1bb)
raw | patch | inline | side by side (parent: 940c1bb)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 14 Jun 2005 03:41:38 +0000 (20:41 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 14 Jun 2005 03:41:38 +0000 (20:41 -0700) |
Sine git only saves the 'x' bit, we shouldn't compare the stat contents
directly.
directly.
apply.c | patch | blob | history |
index cf40e5d4b668d59a96adb1e1a14c42fa6cce6370..c0cd1520db6ef1036678046fc5c8ada174155c49 100644 (file)
--- a/apply.c
+++ b/apply.c
}
if (patch->is_new < 0)
patch->is_new = 0;
+ st.st_mode = ntohl(create_ce_mode(st.st_mode));
if (!patch->old_mode)
patch->old_mode = st.st_mode;
if ((st.st_mode ^ patch->old_mode) & S_IFMT)