[Issue 19819] __FILE__ might emit personally identifiable information in release executable
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Apr 23 08:49:56 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=19819
--- Comment #2 from Lionello Lunesu <lio+bugzilla at lunesu.com> ---
One solution I thought of is to strip components from the filenames, the way
PATCH(1) does it with its option "--strip":
       -pnum  or  --strip=num
          Strip  the  smallest  prefix  containing  num leading slashes from
each file name found in the patch file.  A sequence of one or more adjacent
slashes is counted as a single
          slash.  This controls how file names found in the patch file are
treated, in case you keep your files in a different directory than the person
who sent out the  patch.   For
          example, supposing the file name in the patch file was
             /u/howard/src/blurfl/blurfl.c
          setting -p0 gives the entire file name unmodified, -p1 gives
             u/howard/src/blurfl/blurfl.c
          without the leading slash, -p4 gives
             blurfl/blurfl.c
          and not specifying -p at all just gives you blurfl.c.  Whatever you
end up with is looked for either in the current directory, or the directory
specified by the -d option.
--
    
    
More information about the Digitalmars-d-bugs
mailing list