[Issue 9826] import doesn't work with absolute paths

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
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

2015-03-27 Thread via Digitalmars-d-bugs
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

2013-03-29 Thread d-bugmail
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

2013-03-29 Thread d-bugmail
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

2013-03-29 Thread d-bugmail
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

2013-03-29 Thread d-bugmail
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: ---