summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-08-26 16:01:29 +0000
committerjh <jh@FreeBSD.org>2010-08-26 16:01:29 +0000
commit52028f2ca8892b321fb9297382bc8c745e427c4a (patch)
tree3172f05ae1ca9e45ff74cdb2c2267aca00e2ef82 /sys/fs
parente25569777fbfcdb66edeb272f15299b906c76173 (diff)
downloadFreeBSD-src-52028f2ca8892b321fb9297382bc8c745e427c4a.zip
FreeBSD-src-52028f2ca8892b321fb9297382bc8c745e427c4a.tar.gz
Set de_dir for user created symbolic links. This will be needed to be
able to resolve their parent directories.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/devfs/devfs_vnops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index dfcdf1a..943742e 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -1539,6 +1539,7 @@ devfs_symlink(struct vop_symlink_args *ap)
de->de_gid = 0;
de->de_mode = 0755;
de->de_inode = alloc_unr(devfs_inos);
+ de->de_dir = dd;
de->de_dirent->d_type = DT_LNK;
i = strlen(ap->a_target) + 1;
de->de_symlink = malloc(i, M_DEVFS, M_WAITOK);
OpenPOWER on IntegriCloud