The short answer is to use call-with-trusted-sandbox-configuration so the sandbox can make filesystem calls without being hindered.
On 05/07/2012 11:46 AM, Jon Rafkind wrote: > I'm trying to evaluate honu programs inside a sandbox but I get an error from > `make-evaluator'. Other languages work (racket/base, typed/racket), its only > 'honu that fails so I must have set up something incorrectly. Any idea what > it could be? > > current-directory: `exists' access denied for /home/jon/tmp/ > > === context === > /home/jon/bin/plt/collects/setup/private/main-collects.rkt:19:4: > find-main-collects > /home/jon/bin/plt/collects/racket/private/promise.rkt:103:10 > /home/jon/bin/plt/collects/racket/private/more-scheme.rkt:268:2: > call-with-exception-handler > ... > > >From this code > > #lang at-exp racket/base > > (require racket/sandbox) > > (define (test input) > (define honu-eval (make-evaluator 'honu)) > (honu-eval input)) > > (define input string-append) > > (test @input{1}) > > _________________________ > Racket Developers list: > http://lists.racket-lang.org/dev _________________________ Racket Developers list: http://lists.racket-lang.org/dev