Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176831704
D49134.1793449767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
550 B
Referenced Files
None
Subscribers
None
D49134.1793449767.diff
View Options
Index: usr.sbin/makefs/mtree.c
===================================================================
--- usr.sbin/makefs/mtree.c
+++ usr.sbin/makefs/mtree.c
@@ -939,6 +939,18 @@
return (error);
}
}
+ if (node->inode->st.st_ino == 0) {
+ char *path = mtree_file_path(node);
+ struct stat sb;
+
+ if (lstat(path, &sb) == 0) {
+ node->inode->st.st_ino = sb.st_ino;
+ } else {
+ mtree_warning("%s: path '%s' not found", node->name,
+ path);
+ }
+ free(path);
+ }
node->first = (mtree_current != NULL) ? mtree_current : node;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 31, 12:29 PM (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41263009
Default Alt Text
D49134.1793449767.diff (550 B)
Attached To
Mode
D49134: makefs: Record inode for all entries
Attached
Detach File
Event Timeline