[Issue 9826] import doesn't work with absolute paths
https://issues.dlang.org/show_bug.cgi?id=9826 Iain Buclaw changed: What|Removed |Added Priority|P2 |P3 --
[Issue 9826] import doesn't work with absolute paths
https://issues.dlang.org/show_bug.cgi?id=9826 Vladimir Panteleev changed: What|Removed |Added CC||thecybersha...@gmail.com --- Comment #5 from Vladimir Panteleev --- String-importing absolute paths to arbitrary files are forbidden by design, to prevent programs from capturing arbitrary files from the filesystem during compilation. The bug is that the compiler should realize that the absolute path, in fact, points to a file that is under the allowed string import path (-J.). --
[Issue 9826] import doesn't work with absolute paths
http://d.puremagic.com/issues/show_bug.cgi?id=9826 --- Comment #4 from Timothee Cour 2013-03-29 10:36:53 PDT --- (In reply to comment #2) > (In reply to comment #1) > > Which OS? I'm seeing the opposite effect: > > > > dmd -J. main.d // works > > dmd -J/ main.d // CT error > > Mine using Win7. OSX. also, I actually meant compile with absolute path to main.d given to dmd: dmd -J. /path/to/main.d //fails dmd -J/ /path/to/main.d //works so that __FILE__ is an absolute path -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 9826] import doesn't work with absolute paths
http://d.puremagic.com/issues/show_bug.cgi?id=9826 --- Comment #3 from Timothee Cour 2013-03-29 10:26:53 PDT --- (In reply to comment #2) > (In reply to comment #1) > > Which OS? I'm seeing the opposite effect: > > > > dmd -J. main.d // works > > dmd -J/ main.d // CT error > > Mine using Win7. OSX. also, I actually meant compile with absolute path to main.d given to dmd: dmd -J. /path/to/main.d //fails dmd -J/ /path/to/main.d //works so that __FILE__ is an absolute path -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 9826] import doesn't work with absolute paths
http://d.puremagic.com/issues/show_bug.cgi?id=9826 Andrej Mitrovic changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comment #1 from Andrej Mitrovic 2013-03-29 06:59:42 PDT --- Which OS? I'm seeing the opposite effect: dmd -J. main.d // works dmd -J/ main.d // CT error -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 9826] import doesn't work with absolute paths
http://d.puremagic.com/issues/show_bug.cgi?id=9826 --- Comment #2 from Andrej Mitrovic 2013-03-29 06:59:59 PDT --- (In reply to comment #1) > Which OS? I'm seeing the opposite effect: > > dmd -J. main.d // works > dmd -J/ main.d // CT error Mine using Win7. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---