Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112611464
D49134.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
550 B
Referenced Files
None
Subscribers
None
D49134.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
Fri, Mar 21, 12:27 PM (10 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17242515
Default Alt Text
D49134.diff (550 B)
Attached To
Mode
D49134: makefs: Record inode for all entries
Attached
Detach File
Event Timeline
Log In to Comment