Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2010 16:01:30 +0000 (UTC)
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211847 - head/sys/fs/devfs
Message-ID:  <201008261601.o7QG1UeD047273@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008261601.o7QG1UeD047273>