summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-12-11 12:48:37 +0000
committerphk <phk@FreeBSD.org>2004-12-11 12:48:37 +0000
commitb733b4afe12600b503f3a2bf05f42124cf089ab3 (patch)
tree5710e0db993912af45aa77bb56f2efaab46a89aa /sys
parent93f6fd0d01ebd2fc1bd70ccf94cc8a2ecb46b277 (diff)
downloadFreeBSD-src-b733b4afe12600b503f3a2bf05f42124cf089ab3.zip
FreeBSD-src-b733b4afe12600b503f3a2bf05f42124cf089ab3.tar.gz
Remove the /dev/dev -> / symlink after we are done with it.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c
index 5be63c9..457bec7 100644
--- a/sys/kern/vfs_mount.c
+++ b/sys/kern/vfs_mount.c
@@ -1176,6 +1176,8 @@ devfs_fixup(struct thread *td)
vput(vp);
vput(dvp);
+ /* Unlink the no longer needed /dev/dev -> / symlink */
+ kern_unlink(td, "/dev/dev", UIO_SYSSPACE);
}
/*
OpenPOWER on IntegriCloud