From 75711a4f6db68ba247c626328ab02600c1a09f61 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 1 Jun 2004 15:04:54 +0000 Subject: [PATCH] Stdio tasks now don't have access to the I/O files. --- TODO | 22 ++-------------------- bin/lib | 8 +++----- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/TODO b/TODO index 2683cd6..29b9acd 100644 --- a/TODO +++ b/TODO @@ -2,34 +2,16 @@ Evaluator ~~~~~~~~~ box: konfigurovatelny pristup k timerum a /proc/self/stat (pripadne /proc/self/fd) score: better formatting of the score table -score: alignment of table cells -stdio tasks: don't allow them to read the files interactive tasks: solve deadlocks? interactive tasks: logging of messages -a tool for creating accounts with passwords (according to userlist?) ; replace UID ranges completely? +creating user accounts: start with userlist, create passwd items and passwords; replace CT_UID_xxx completely? fix mo-* to use mo-get-users post-sandbox hook guide: compile , not only guide: status +guide for CPSPC: stdio, not files, should be used for I/O Environment ~~~~~~~~~~~ -per-user tmp ? -rhide: debugging Pascal programs: variable names must be upper-cased fpc: add switch -gl (runtime errors write line#) - - -Contest -~~~~~~~ -Prepare /home/mo/public//* for all problems -# ./comp-prepare - -# ./comp-kickout -# ./comp-cleanup - -before competition -~~~~~~~~~~~~~~~~~~ -uninstall telnetd -clean /tmp + /var/tmp and check permissions -reset owners of com-day* and com-all to avoid quota problems diff --git a/bin/lib b/bin/lib index a042892..c83367f 100644 --- a/bin/lib +++ b/bin/lib @@ -202,8 +202,7 @@ function test-prolog ;; stdio) echo "Input file: (from $PDIR/$TEST.in)" ln $PDIR/$TEST.in $TDIR/$TEST.in - cp $PDIR/$TEST.in $BOXDIR/$PROBLEM.in - BOX_EXTRAS="$BOX_EXTRAS -i$PROBLEM.in" + BOX_EXTRAS="$BOX_EXTRAS -i$TDIR/$TEST.in" ;; none) echo "Input file: " ;; @@ -215,7 +214,7 @@ function test-prolog BOX_EXTRAS="$BOX_EXTRAS -o/dev/null" ;; stdio) echo "Output file: " - BOX_EXTRAS="$BOX_EXTRAS -o$PROBLEM.out" + BOX_EXTRAS="$BOX_EXTRAS -o$TDIR/$TEST.out" ;; none) echo "Output file: " ;; @@ -237,8 +236,7 @@ function test-epilog file) [ -f $BOXDIR/$PROBLEM.out ] || test-result 0 "No output file." cp $BOXDIR/$PROBLEM.out $TDIR/$TEST.out ;; - stdio) [ -f $BOXDIR/$PROBLEM.out ] || test-result 0 "No output file." - cp $BOXDIR/$PROBLEM.out $TDIR/$TEST.out + stdio) [ -f $TDIR/$TEST.out ] || test-result 0 "No output file." ;; esac } -- 2.39.2