Commit ecd6d584a43fb588ad5ff6cf904303a835c8da14

Stefan Sperling 2020-06-27T15:20:28

fix definition of the GOT_FILEIDX_MODE_PERMS bitmask

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/got_lib_fileindex.h b/lib/got_lib_fileindex.h
index aff771b..af6efe8 100644
--- a/lib/got_lib_fileindex.h
+++ b/lib/got_lib_fileindex.h
@@ -39,7 +39,7 @@ struct got_fileindex_entry {
 #define GOT_FILEIDX_MODE_FILE_TYPE	0x000f
 #define GOT_FILEIDX_MODE_REGULAR_FILE	1
 #define GOT_FILEIDX_MODE_SYMLINK	2
-#define GOT_FILEIDX_MODE_PERMS		0xff10
+#define GOT_FILEIDX_MODE_PERMS		0xfff0
 #define GOT_FILEIDX_MODE_PERMS_SHIFT	4
 
 	/* SHA1 of corresponding blob in repository. */