#13631: Sage refuses to run despite safe directory
---------------------------+------------------------------------------------
Reporter: vbraun | Owner: mvngu
Type: defect | Status: new
Priority: blocker | Milestone: sage-5.4
Component: doctest | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
---------------------------+------------------------------------------------
Comment (by hthomas):
I can get the same error without the patchbot.
{{{
hugh@hugh-laptop:~$ cd sage-5.4.rc2/devel/sage-main/
hugh@hugh-laptop:~/sage-5.4.rc2/devel/sage-main$ ../../sage -t
sage/combinat/tableau.py
Traceback (most recent call last):
File "/home/hugh/sage-5.4.rc2/local/bin/sage-test", line 53, in <module>
.format(os.getcwd()))
RuntimeError: refusing to run doctests from the current directory
'/home/hugh/sage-5.4.rc2/devel/sage-main' since untrusted users could put
files in this directory, making it unsafe to run Sage code from
}}}
I get the same output from the above commands (ls, etc.) in sage-main as
in sage-0.
It works fine if I run sage -t from ~/sage-5.4.rc2. There, I get:
{{{
hugh@hugh-laptop:~/sage-5.4.rc2$ ls -ald .
drwxr-xr-x 9 hugh hugh 4096 2012-10-20 22:44 .
}}}
I get same error as above if I run sage -t from ~/sage-5.4.rc2/devel,
where the output from ls -ald ., etc., looks very similar. to
sage-5.4.rc2/devel/sage-main.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13631#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.