Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r2504 - branches/fsvs-1.2.x/fsvs/tests/067_readonly_repo

fsvs
Discussion topic

Back to topic list

svn commit: r2504 - branches/fsvs-1.2.x/fsvs/tests/067_readonly_repo

Author pmarek
Full name P.Marek
Date 2018-06-06 06:47:16 PDT
Message Author: pmarek
Date: 2018-06-06 06:47:15-0700
New Revision: 2504

Modified:
   branches/fsvs-1.2.x/​fsvs/tests/067_reado​nly_repo

Log:
Root may access all local files.

Modified: branches/fsvs-1.2.x/​fsvs/tests/067_reado​nly_repo
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/branches/fsvs-1.2.​x/fsvs/tests/067_rea​donly_repo?view=diff​&pathrev=2504​&r1=2503&r2=250​4
====================​====================​====================​==================
--- branches/fsvs-1.2.x/​fsvs/tests/067_reado​nly_repo (original)
+++ branches/fsvs-1.2.x/​fsvs/tests/067_reado​nly_repo 2018-06-06 06:47:15-0700
@@ -5,6 +5,13 @@
 $INCLUDE_FUNCS
 cd $WC
 
+if [[ $UID -eq 0 &&
+ "$REPURL" == "file://"* ]]
+then
+ echo "The root user may always access local files."
+ exit 0
+fi
+
 TMP=$LOGDIR/067.msg
 
 date > blabla

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r2504 - branches/fsvs-1.2.x/fsvs/tests/067_readonly_repo pmarek P.Marek 2018-06-06 06:47:16 PDT
Messages per page: