[llvm-commits] Patch for llvm-ar, llvm-ranlib creating files with wrong? file access rights
Duncan Sands
baldrick at free.fr
Thu May 15 13:40:26 PDT 2008
On Thursday 15 May 2008 22:25:45 Owen Anderson wrote:
> On May 15, 2008, at 4:57 AM, Mikael Lepistö wrote:
> > + if (archPath.makeWriteableOnDisk(ErrMsg))
> > + return true;
> > +
> >
>
> I don't understand why you're making it writable. The permission that
> normal ar sets are rw-r--r--.
On unix machines the usual thing is to pass ugo+rw to open, and it
will be masked with the current umask to produce (usually) something
tighter like rw-r--r--. Dunno how this should be done in LLVM.
Ciao,
Duncan.
More information about the llvm-commits
mailing list