]> Zhao Yanbai Git Server - minix.git/commitdiff
Removing /home/bin 01/2701/1
authorLionel Sambuc <lionel@minix3.org>
Thu, 7 Aug 2014 11:37:43 +0000 (13:37 +0200)
committerLionel Sambuc <lionel@minix3.org>
Thu, 7 Aug 2014 12:01:30 +0000 (14:01 +0200)
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

distrib/sets/lists/minix/mi
etc/Makefile
etc/master.passwd
etc/mtree/NetBSD.dist.base
minix/commands/setup/setup.sh
minix/tests/run

index c05052af64ba472da039d37c4578db2264c2bb53..1d3d5912bd0e27d9fc4180505f3258c8c18138ea 100644 (file)
 ./home/ast                             minix-sys       obsolete
 ./home/ast/.exrc                       minix-sys       obsolete
 ./home/ast/.profile                    minix-sys       obsolete
-./home/bin                             minix-sys
-./home/bin/.exrc                       minix-sys
-./home/bin/.profile                    minix-sys
+./home/bin                             minix-sys       obsolete
+./home/bin/.exrc                       minix-sys       obsolete
+./home/bin/.profile                    minix-sys       obsolete
 ./lib                                  minix-sys
 ./mnt                                  minix-sys
 ./proc                                 minix-sys
index b5e5223533aa80e73242ae80e3696d71467cc8a0..766ff3762b3613b9f97fb889ed48f55ea14a89fc 100644 (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}     ${NONBINMODE}   ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/usr/ast/ .[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}
        if [ ! -e ${tdir} ]; then \
index 9cf0c81ed97ae6eee6ec938fc631ae47622895c6..82ce65c4dd69cf1757b122595ac335c7d4096801 100644 (file)
@@ -1,6 +1,6 @@
 root::0:0::0:0:Big Brother:/root:/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
 news:*:6:6::0:0:Usenet news:/usr/spool/news:/bin/sh
 ftp:*:7:7::0:0:Anonymous FTP:/usr/ftp:/bin/sh
index 5bbabd7b0f9bcdd39bc7fa9b4e0638d7ea45ef00..7d68a01b0538fa8d70f240e0e426baec3f3184a7 100644 (file)
 ./tmp
 ./usr/tmp
 
-/set type=dir uid=2 gid=0 mode=755
-./home/bin
-
 /set type=dir uid=2 gid=0 mode=755
 ./usr/tests/minix-posix
 ./usr/tests/minix-posix/blocktest
index ffc62538baf4317cf7e1cf0249f1a30df7515f33..065c8b9024f2b9ae67af2160d8f3ed219cd9f353 100644 (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'`"
 
-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.."
 dd if=/dev/random of=/mnt/usr/adm/random.dat bs=1024 count=1
 
index 80d07c16ee6be9b2ebce50c9b25c5ab14e690b47..86cc90e59831460e40e472dd2daba174fa5ba3b5 100755 (executable)
@@ -111,7 +111,7 @@ runtest() {
        then
                if [ $needroot -eq 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
        else
                if [ $needroot -eq 1 ]