Adapted patch from José Bollo to do the "tonight we're gonna api like
authorRob Landley <rob@landley.net>
Tue, 19 May 2015 19:53:06 +0000 (14:53 -0500)
committerRob Landley <rob@landley.net>
Tue, 19 May 2015 19:53:06 +0000 (14:53 -0500)
commitb031a3bc269e9cdb7bf307a757896b6ec7c4b3fe
tree44429481221d9f344923866d5c3a955214c504d1
parent0cb5b70fa4ef093b08e59db813e73f3be6ecef4b
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.)
toys/posix/ls.c