commit 8957ae76febe5a6d3784d953344e6f765b1a6ace from: Stefan Sperling date: Thu Aug 08 14:38:43 2019 UTC ensure that file index entry perms map to regular files commit - 95ac67f04b39e8b32c33ec940e4584207e566bcf commit + 8957ae76febe5a6d3784d953344e6f765b1a6ace blob - 2e2def149a4f0efc4591c4551caaed246f8e30fe blob + c4026c7123c5faeffcbed3df40732d272df018a0 --- lib/fileindex.c +++ lib/fileindex.c @@ -61,7 +61,7 @@ mode_t got_fileindex_perms_to_st(struct got_fileindex_entry *ie) { mode_t perms = (ie->mode >> GOT_FILEIDX_MODE_PERMS_SHIFT); - return (perms & (S_IRWXU | S_IRWXG | S_IRWXO)); + return (S_IFREG | (perms & (S_IRWXU | S_IRWXG | S_IRWXO))); } const struct got_error *