svn commit: r255020 - stable/8/sys/fs/devfs

Andriy Gapon avg at FreeBSD.org
Thu Aug 29 12:25:12 UTC 2013


Author: avg
Date: Thu Aug 29 12:25:12 2013
New Revision: 255020
URL: http://svnweb.freebsd.org/changeset/base/255020

Log:
  MFC r211847: Set de_dir for user created symbolic links.
  
  This MFC should fix a panic introduced in r254708.
  
  Reported by:	Toomas Aas <toomas.aas at raad.tartu.ee>, jase
  Tested by:	jase
  MFC slacker:	jh

Modified:
  stable/8/sys/fs/devfs/devfs_vnops.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/fs/   (props changed)

Modified: stable/8/sys/fs/devfs/devfs_vnops.c
==============================================================================
--- stable/8/sys/fs/devfs/devfs_vnops.c	Thu Aug 29 11:49:53 2013	(r255019)
+++ stable/8/sys/fs/devfs/devfs_vnops.c	Thu Aug 29 12:25:12 2013	(r255020)
@@ -1513,6 +1513,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