summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-23 20:23:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-23 20:23:36 +0000
commit5db4f558b547703e0da165ce827770299e72144d (patch)
tree1aba06136dae0417a8b450e5a021f701d48fe55b
parent494f39a1befc308729799247c26849ad4c2c1a50 (diff)
Give the user a copy of root's (install time) mail
-rw-r--r--distrib/miniroot/install.sub5
1 files changed, 3 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 23e2d878d7b..dc49e9a0f73 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.467 2009/04/23 18:26:14 deraadt Exp $
+# $OpenBSD: install.sub,v 1.468 2009/04/23 20:23:35 deraadt Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2007 Todd Miller, Theo de Raadt, Ken Westerback
@@ -320,7 +320,8 @@ user_setup() {
mkdir -p /mnt/home/$_u
(cd /mnt/etc/skel; cp -pR . /mnt/home/$_u)
- chown -R 1000.10 /mnt/home/$_u
+ cp -p /mnt/var/mail/root /mnt/var/mail/$_u
+ chown -R 1000.10 /mnt/home/$_u /mnt/var/mail/$_u
echo "1,s@wheel:.:0:root\$@wheel:\*:0:root,${_u}@
w
q" | /mnt/bin/ed /mnt/etc/group 2>/dev/null