]> Zhao Yanbai Git Server - minix.git/commitdiff
Some permissions issues with installs fixed
authorBen Gras <ben@minix3.org>
Wed, 4 May 2005 13:47:05 +0000 (13:47 +0000)
committerBen Gras <ben@minix3.org>
Wed, 4 May 2005 13:47:05 +0000 (13:47 +0000)
tools/mkboot
tools/release.sh

index 0f022f2b15127cc8ea890cb4c54e32018766b25f..76fe3aa48cbc11359d08524cf68a9621ba93fabc 100755 (executable)
@@ -98,8 +98,8 @@ hdboot)
        esac
 
        # Install the new image.
-       echo "cp image $root:/boot/image/$target"
-       cp -p image $rootdir/boot/image/$target || exit
+       echo "install image $root:/boot/image/$target"
+       install -o root -m 600 image $rootdir/boot/image/$target || exit
 
        # Save the revision number.
        test "$revision" != "$oldrev" && echo $revision >revision
index fb87616a5e3ccdd99f595bdbad733bbd32e2d177..6c95bc2d4677e2fe2316be7952122241aa342f06 100755 (executable)
@@ -45,7 +45,8 @@ mkdir -p $RELEASEDIR
 mkfs -b 1440 -B 1024 $RAM || exit
 echo " * mounting $RAM as $RELEASEDIR"
 mount $RAM $RELEASEDIR || exit
-mkdir $RELEASEDIR/usr $RELEASEDIR/tmp
+mkdir -m 755 $RELEASEDIR/usr
+mkdir -m 1777 $RELEASEDIR/tmp
 mount $TMPTMPDISK $RELEASEDIR/tmp || exit 1
 
 mkfs -B 1024 $TMPDISK