This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add ar --output


Hi Fangrui,

> There is a proposal https://reviews.llvm.org/D69418 that adds --output
> to llvm-ar. --output specifies the output directory for the x (extract)
> operation. 

I have started working on an implementation of this feature for the binutils
version of ar.  I have run across one issue however, which I would like to
run by you:

  https://sourceware.org/bugzilla/show_bug.cgi?id=17533#c7

Currently the binutils version of ar checks that files are extracted into
the current directory, or into sub-directories of the current directory, 
but not elsewhere in the file system.  Do you think that the code handling
the --output option should just waive these checks, on the assumption that
the if the user wants to extract the files into another place then they
should know what they are doing, or issue a warning if the resolved path
would be outside of the current directory, or refuse to create such files ?

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]