svn commit: r211847 - head/sys/fs/devfs
Jaakko Heinonen
jh at FreeBSD.org
Thu Aug 26 16:01:30 UTC 2010
Author: jh
Date: Thu Aug 26 16:01:29 2010
New Revision: 211847
URL: http://svn.freebsd.org/changeset/base/211847
Log:
Set de_dir for user created symbolic links. This will be needed to be
able to resolve their parent directories.
Modified:
head/sys/fs/devfs/devfs_vnops.c
Modified: head/sys/fs/devfs/devfs_vnops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vnops.c Thu Aug 26 15:49:52 2010 (r211846)
+++ head/sys/fs/devfs/devfs_vnops.c Thu Aug 26 16:01:29 2010 (r211847)
@@ -1539,6 +1539,7 @@ devfs_symlink(struct vop_symlink_args *a
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);
More information about the svn-src-all
mailing list