mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
Add support to hard links to CROMFS
This will resolve numerous problems with the way that hard links, in particular "." and ".." are handled. Instead of trying to fudge the stat flags, the correct implementation is to follow the hard link to the final link target node. That is what must determine the attributes of the directory entry.
This commit is contained in:
committed by
David Sidrane
parent
00c662bbd7
commit
b256b2055f
+337
-106
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -925,7 +925,7 @@ static void gen_directory(const char *path, const char *name, mode_t mode,
|
||||
uint32_t save_offset = g_offset;
|
||||
uint32_t save_diroffset = g_diroffset;
|
||||
uint32_t save_parent_offset = g_parent_offset;
|
||||
FILE *save_tmpstream = g_tmpstream;
|
||||
FILE *save_tmpstream = g_tmpstream;
|
||||
FILE *subtree_stream;
|
||||
int namlen;
|
||||
int result;
|
||||
|
||||
Reference in New Issue
Block a user