Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173828248
D38028.id114984.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
651 B
Referenced Files
None
Subscribers
None
D38028.id114984.diff
View Options
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
@@ -300,12 +300,17 @@
ssize_t n;
int fd;
- fs_populate_path(cur, arg, path, sizeof(path), &fd);
+ if (cur->symlink != NULL) {
+ n = strlcpy(buf, cur->symlink, bufsz);
+ assert(n < bufsz);
+ } else {
+ fs_populate_path(cur, arg, path, sizeof(path), &fd);
- n = readlinkat(fd, path, buf, bufsz - 1);
- if (n == -1)
- err(1, "readlinkat(%s)", cur->name);
- buf[n] = '\0';
+ n = readlinkat(fd, path, buf, bufsz - 1);
+ if (n == -1)
+ err(1, "readlinkat(%s)", cur->name);
+ buf[n] = '\0';
+ }
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 29, 6:04 PM (19 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39889651
Default Alt Text
D38028.id114984.diff (651 B)
Attached To
Mode
D38028: makefs: handle mtree link= for ZFS
Attached
Detach File
Event Timeline
Log In to Comment