diff options
author | Rob Landley <rob@landley.net> | 2015-05-19 14:53:06 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-05-19 14:53:06 -0500 |
commit | b031a3bc269e9cdb7bf307a757896b6ec7c4b3fe (patch) | |
tree | 44429481221d9f344923866d5c3a955214c504d1 /toys/other/pwdx.c | |
parent | 0cb5b70fa4ef093b08e59db813e73f3be6ecef4b (diff) | |
download | toybox-b031a3bc269e9cdb7bf307a757896b6ec7c4b3fe.tar.gz |
Adapted patch from José Bollo to do the "tonight we're gonna api like
it's 1999 and every path ever is from cwd or root" api versions for sockets
and as a fallback of the open fails.
There are still some holes (symlink to socket with -L will give you info
about the symlink, not the socket, and symlink to a file you can't open will
give you info about the symlink, not the file) but the correct fix is
to make O_PATH work in the kernel for the LSM functions. (If we can read
this data by path, we should be able to read it by O_PATH. We should not
need two codepaths for this.)
Diffstat (limited to 'toys/other/pwdx.c')
0 files changed, 0 insertions, 0 deletions