diff options
Diffstat (limited to 'read-cache.c')
-rw-r--r-- | read-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c index 03d49e1026..042b0c2107 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)) |