From de4971b50076b5ef901c2ae0bbee9dd2c14f06ea Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 13 Jun 2005 20:41:38 -0700 Subject: [PATCH] git-apply: normalize file mode when comparing with expected value Sine git only saves the 'x' bit, we shouldn't compare the stat contents directly. --- apply.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apply.c b/apply.c index cf40e5d4b..c0cd1520d 100644 --- a/apply.c +++ b/apply.c @@ -1000,6 +1000,7 @@ static int check_patch(struct patch *patch) } 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) -- 2.26.2