From 4136388a1815ef48cd2b2005b254293a0986c376 Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Thu, 26 Aug 2010 16:01:29 +0000 Subject: [PATCH] Set de_dir for user created symbolic links. This will be needed to be able to resolve their parent directories. --- sys/fs/devfs/devfs_vnops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index dfcdf1ac7907..943742e6fc81 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);