resurrecting Bud and Rebuild

Max Samukha samukha at voliacable.com
Sun Feb 11 23:07:27 PST 2007


On Wed, 07 Feb 2007 13:40:16 -0800, Walter Bright
<newshound at digitalmars.com> wrote:

>It was (correctly) pointed out that textual import breaks Bud and 
>Rebuild. It's also been pointed out that textual import may be an 
>unexpected vector for security problems.
>
>Both can be resolved by only allowing textual import if a command 
>switch, say, -Jpath, is given. 'path' gives the location of where to 
>look for the file; and the file will be restricted to being under that 
>path. No -Jpath, and textual import won't be allowed.
>
>For Bud and Rebuild, if there's no -J, they know there are no textual 
>imports, so they work as before. With -J, they always recompile.

Will relative paths to subdirectories of 'path' be allowed in the
import expression (a behavior similar to ordinary imports)?

import ("file") - 'path'/file
import ("subdir/file") - 'path'/subdir/file
import ("/etc/passwd") - error
import ("../file") - error



More information about the Digitalmars-d mailing list