1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-03 14:59:53 +02:00

finally make it work

This commit is contained in:
Jim Meyering
2001-08-06 09:50:05 +00:00
parent 0324f0f18b
commit 11b02c5e13
+11 -1
View File
@@ -12,7 +12,17 @@ priv_check_temp=priv-check.$$
touch $priv_check_temp || framework_failure=1
chmod a-w $priv_check_temp || framework_failure=1
(echo foo >> $priv_check_temp) >/dev/null 2>&1 || {
(echo foo >> $priv_check_temp) >/dev/null 2>&1
overwrite_status=$?
give_msg=no
case $1:$overwrite_status in
require-root:0) ;;
require-root:*) give_msg=yes ;;
require-non-root:0) give_msg=yes ;;
require-non-root:*) ;;
esac
test $give_msg = yes && {
cat <<EOF
***************************
NOTICE: