Page MenuHomeFreeBSD

D38027.diff
No OneTemporary

D38027.diff

diff --git a/usr.sbin/makefs/zfs/fs.c b/usr.sbin/makefs/zfs/fs.c
--- a/usr.sbin/makefs/zfs/fs.c
+++ b/usr.sbin/makefs/zfs/fs.c
@@ -255,7 +255,13 @@
fs_populate_path(const fsnode *cur, struct fs_populate_arg *arg,
char *path, size_t sz, int *dirfdp)
{
- if (cur->root == NULL) {
+ if (cur->contents != NULL) {
+ size_t n;
+
+ *dirfdp = AT_FDCWD;
+ n = strlcpy(path, cur->contents, sz);
+ assert(n < sz);
+ } else if (cur->root == NULL) {
size_t n;
*dirfdp = SLIST_FIRST(&arg->dirs)->dirfd;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 5, 4:43 PM (13 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14470145
Default Alt Text
D38027.diff (509 B)

Event Timeline