From owner-svn-src-all@FreeBSD.ORG Thu Aug 26 16:01:30 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51C9B1065673; Thu, 26 Aug 2010 16:01:30 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 419AF8FC16; Thu, 26 Aug 2010 16:01:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7QG1UVY047275; Thu, 26 Aug 2010 16:01:30 GMT (envelope-from jh@svn.freebsd.org) Received: (from jh@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7QG1UeD047273; Thu, 26 Aug 2010 16:01:30 GMT (envelope-from jh@svn.freebsd.org) Message-Id: <201008261601.o7QG1UeD047273@svn.freebsd.org> From: Jaakko Heinonen Date: Thu, 26 Aug 2010 16:01:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211847 - head/sys/fs/devfs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2010 16:01:30 -0000 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);