From 42ea9cb286423c949d42ad33823a5221182f84bf Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 5 May 2005 16:18:48 -0700 Subject: Be more careful about tree entry modes. The tree object parsing used to get the executable bit wrong, and didn't know about symlinks. Also, fsck really wants the full mode value so that it can verify the other bits for sanity, so save it all in struct tree_entry. --- tree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tree.h') diff --git a/tree.h b/tree.h index 96cf4291d1..e1c94c090c 100644 --- a/tree.h +++ b/tree.h @@ -9,6 +9,8 @@ struct tree_entry_list { struct tree_entry_list *next; unsigned directory : 1; unsigned executable : 1; + unsigned symlink : 1; + unsigned int mode; char *name; union { struct tree *tree; -- cgit v1.2.3