tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: $ORIGIN



On Sat, Jan 25, 2014 at 11:04:44PM -0800, Matt Thomas wrote:
 > > No, it isn't; you can get one by seeding the input to namei with
 > > getcwd. The problem is that we didn't want to do that on every exec
 > > and (if done on every exec) that it would cause problems in cases
 > > where getcwd fails.
 > 
 > Aren't the majority of exec's done with a pathname?  Why not cache
 > that name if the image has DF_ORIGIN set?

That's done anyway. It's only execs via a relative path that don't
work.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index