Date: Sun, 17 Aug 2008 21:08:04 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 147672 for review Message-ID: <200808172108.m7HL84sD090319@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147672 Change 147672 by trasz@trasz_traszkan on 2008/08/17 21:07:45 Make aclfuzzer clean after itself. Affected files ... .. //depot/projects/soc2008/trasz_nfs4acl/tools/regression/acltools/fuzzer.sh#2 edit Differences ... ==== //depot/projects/soc2008/trasz_nfs4acl/tools/regression/acltools/fuzzer.sh#2 (text+ko) ==== @@ -25,10 +25,10 @@ { rnd=`rnd_from_0_to 3` case $rnd in - 0) echo "aaa" ;; - 1) echo "bbb" ;; - 2) echo "aaa/ccc" ;; - 3) echo "bbb/ddd" ;; + 0) echo "$TMP/aaa" ;; + 1) echo "$TMP/bbb" ;; + 2) echo "$TMP/aaa/ccc" ;; + 3) echo "$TMP/bbb/ddd" ;; esac } @@ -105,7 +105,7 @@ f_ls_mode() { file=`rnd_path` - run_command "ls -l $file | cut -d' ' -f1" + run_command "ls -al $file | sed -n '2p' | cut -d' ' -f1" } f_chmod() @@ -177,8 +177,11 @@ } echo "# Fuzzing; will stop after $NUMBER_OF_COMMANDS commands." +TMP="aclfuzzer_`dd if=/dev/random bs=1k count=1 2>/dev/null | openssl md5`" + run_command "whoami" -run_command "umask" +run_command "umask 022" +run_command "mkdir $TMP" i=0; while [ "$i" -lt "$NUMBER_OF_COMMANDS" ]; do @@ -187,5 +190,8 @@ i=`expr $i + 1` done +run_command "find $TMP -exec setfacl -a0 everyone@:rxd:allow {} \;" +run_command "rm -rfv $TMP" + echo "# Fuzzed, thank you."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808172108.m7HL84sD090319>