summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorPetr Baudis <pasky@ucw.cz>2005-04-17 17:04:48 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-17 17:04:48 (GMT)
commite8871e88adca0637eb0299a41d85400beac928bd (patch)
tree81ab899c3e71a2f9d8c75cd0620c9e7ea9182afc /read-cache.c
parentc747fc6facdbbde4386418cfe6ad7e231a1b4eaf (diff)
downloadgit-e8871e88adca0637eb0299a41d85400beac928bd.zip
git-e8871e88adca0637eb0299a41d85400beac928bd.tar.gz
git-e8871e88adca0637eb0299a41d85400beac928bd.tar.bz2
[PATCH] Fix +x-related show-diff false positives
This fixes show-diff listing all +x files as differring. Signed-off-by: Petr Baudis <pasky@ucw.cz> [ That's what I get for working on a G5 - my testing was all big-endian in the first place. -- Linus ] Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 03d49e1..042b0c2 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -304,7 +304,7 @@ int cache_match_stat(struct cache_entry *ce, struct stat *st)
ce->ce_gid != htonl(st->st_gid))
changed |= OWNER_CHANGED;
/* We consider only the owner x bit to be relevant for "mode changes" */
- if (0100 & (ntohs(ce->ce_mode) ^ st->st_mode))
+ if (0100 & (ntohl(ce->ce_mode) ^ st->st_mode))
changed |= MODE_CHANGED;
if (ce->ce_dev != htonl(st->st_dev) ||
ce->ce_ino != htonl(st->st_ino))