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
Sun, Nov 17, 5:48 PM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14682813
Default Alt Text
D38027.diff (509 B)

Event Timeline