[Issue 14713] dmd -ofpath/to/bar calls mkdir -p to create a file anywhere

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Aug 31 10:00:40 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14713

Luís Marques <luis at luismarques.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luis at luismarques.eu

--- Comment #4 from Luís Marques <luis at luismarques.eu> ---
(In reply to Vladimir Panteleev from comment #3)
> Good points. However, at this point it's unlikely the current behavior will
> be changed (unless e.g. new arguments surface that show this to be a
> security problem) as it might break existing build scripts.

If this were to be changed, would you include a -p switch to allow deep path
creations? If so, then how about outputting a warning when a deep path is
created and -p was not specified? Later, this could become an error, instead of
a warning.

--


More information about the Digitalmars-d-bugs mailing list