commit | 27b4923ba00f0a7511c7ebf5f19313d6313052e9 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sat Aug 31 15:44:58 2013 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Sat Aug 31 15:44:58 2013 -0400 |
tree | 30d54effafffe4e92f73aa91bb1dc5f5d25dbb1d | |
parent | 9ff8ed463caa86cb5e81419d8eb3bfb56e90f03c [diff] |
make realpath use O_PATH when opening the file this avoids failure if the file is not readable and avoids odd behavior for device nodes, etc. on old kernels that lack O_PATH, the old behavior (O_RDONLY) will naturally happen as the fallback.