Removing /home/bin

The bin user doesn't need an actual home folder to run the tests. As
such this account should not be used in 'su - bin'. To be noted that
'su bin' still works as expected, and allow to run the minix test set
as usual.

Change-Id: I21fd178bf3b7b28849f05ef24930b553094cc851
This commit is contained in:
Lionel Sambuc 2014-08-07 13:37:43 +02:00
parent 957a365668
commit b8d147203f
6 changed files with 5 additions and 24 deletions

View file

@ -124,9 +124,9 @@
./home/ast minix-sys obsolete ./home/ast minix-sys obsolete
./home/ast/.exrc minix-sys obsolete ./home/ast/.exrc minix-sys obsolete
./home/ast/.profile minix-sys obsolete ./home/ast/.profile minix-sys obsolete
./home/bin minix-sys ./home/bin minix-sys obsolete
./home/bin/.exrc minix-sys ./home/bin/.exrc minix-sys obsolete
./home/bin/.profile minix-sys ./home/bin/.profile minix-sys obsolete
./lib minix-sys ./lib minix-sys
./mnt minix-sys ./mnt minix-sys
./proc minix-sys ./proc minix-sys

View file

@ -435,7 +435,6 @@ install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV
${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/devmand/scripts/ ${DESTDIR}/etc/devmand/scripts/ singlechar \ ${BINOWN} ${BINGRP} ${BINMODE} ${NETBSDSRCDIR}/etc/devmand/scripts/ ${DESTDIR}/etc/devmand/scripts/ singlechar \
${BINOWN} ${BINGRP} ${NONBINMODE} ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/usr/ast/ .[aepv]* \ ${BINOWN} ${BINGRP} ${NONBINMODE} ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/usr/ast/ .[aepv]* \
${BINOWN} ${BINGRP} ${NONBINMODE} ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/root/ .[aepv]* \ ${BINOWN} ${BINGRP} ${NONBINMODE} ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/root/ .[aepv]* \
bin ${BINGRP} ${NONBINMODE} ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/home/bin/ .[aepv]* \
${_MKMSG_INSTALL} ${DESTDIR}${tdir}${files:T} ${_MKMSG_INSTALL} ${DESTDIR}${tdir}${files:T}
if [ ! -e ${tdir} ]; then \ if [ ! -e ${tdir} ]; then \

View file

@ -1,6 +1,6 @@
root::0:0::0:0:Big Brother:/root:/bin/sh root::0:0::0:0:Big Brother:/root:/bin/sh
daemon:*:1:1::0:0:The Deuce:/etc:/bin/sh daemon:*:1:1::0:0:The Deuce:/etc:/bin/sh
bin:*:2:0::0:0:Binaries:/home/bin:/bin/sh bin:*:2:0::0:0:Binaries Commands and Source:/nonexistent:/bin/sh
uucp:*:5:5::0:0:UNIX to UNIX copy:/usr/spool/uucp:/usr/bin/uucico uucp:*:5:5::0:0:UNIX to UNIX copy:/usr/spool/uucp:/usr/bin/uucico
news:*:6:6::0:0:Usenet news:/usr/spool/news:/bin/sh news:*:6:6::0:0:Usenet news:/usr/spool/news:/bin/sh
ftp:*:7:7::0:0:Anonymous FTP:/usr/ftp:/bin/sh ftp:*:7:7::0:0:Anonymous FTP:/usr/ftp:/bin/sh

View file

@ -168,9 +168,6 @@
./tmp ./tmp
./usr/tmp ./usr/tmp
/set type=dir uid=2 gid=0 mode=755
./home/bin
/set type=dir uid=2 gid=0 mode=755 /set type=dir uid=2 gid=0 mode=755
./usr/tests/minix-posix ./usr/tests/minix-posix
./usr/tests/minix-posix/blocktest ./usr/tests/minix-posix/blocktest

View file

@ -744,21 +744,6 @@ echo "cddrive=$cddrive" >>/mnt/usr/etc/rc.package
bios="`echo $primary | sed -e 's/d./dX/g' -e 's/c.//g'`" bios="`echo $primary | sed -e 's/d./dX/g' -e 's/c.//g'`"
if [ ! "$auto" = "r" ]
then if mount /dev/$home /home 2>/dev/null
then for u in bin
do h=`eval echo "~$u"`
if mkdir $h
then echo " * Creating home directory for $u in $h"
pax -rw -pe /usr/ast $h
chown -R $u:operator $h
else echo " * Couldn't create $h"
fi
done
umount /dev/$home
fi
fi
echo "Saving random data.." echo "Saving random data.."
dd if=/dev/random of=/mnt/usr/adm/random.dat bs=1024 count=1 dd if=/dev/random of=/mnt/usr/adm/random.dat bs=1024 count=1

View file

@ -111,7 +111,7 @@ runtest() {
then then
if [ $needroot -eq 1 ] if [ $needroot -eq 1 ]
then $NAME $ARG || return 1 then $NAME $ARG || return 1
else su - bin -c "cd `pwd`; $NAME $ARG" || return 1 else su bin -c "$NAME $ARG" || return 1
fi fi
else else
if [ $needroot -eq 1 ] if [ $needroot -eq 1 ]