Re: readlink -f / Bug|Glitch|Feature

2019-11-26 Thread Raimo Niskanen
On Tue, Nov 26, 2019 at 10:20:37AM -0700, Bob Beck wrote: > On Thu, Nov 21, 2019 at 3:53 AM Raimo Niskanen > wrote: > > > > On OpenBSD 6.6 amd64 patch 006, i get peculiar results from readlink(1) > > with arguments -f with a symlink to / > > > > $ readlink -f / > > / > > > > $ ln -s / test;

Re: readlink -f / Bug|Glitch|Feature

2019-11-26 Thread Bob Beck
On Thu, Nov 21, 2019 at 3:53 AM Raimo Niskanen wrote: > > On OpenBSD 6.6 amd64 patch 006, i get peculiar results from readlink(1) > with arguments -f with a symlink to / > > $ readlink -f / > / > > $ ln -s / test; readlink -f test; rm test > readlink: test: Is a directory > > $ readlink -f /. > /

Re: readlink -f / Bug|Glitch|Feature

2019-11-26 Thread Bob Beck
On Thu, Nov 21, 2019 at 10:28 AM Todd C. Miller wrote: > > On Thu, 21 Nov 2019 11:52:53 +0100, Raimo Niskanen wrote: > > > On OpenBSD 6.6 amd64 patch 006, i get peculiar results from readlink(1) > > with arguments -f with a symlink to / > > > > $ readlink -f / > > / > > > > $ ln -s / test;

Re: readlink -f / Bug|Glitch|Feature

2019-11-21 Thread Todd C . Miller
On Thu, 21 Nov 2019 11:52:53 +0100, Raimo Niskanen wrote: > On OpenBSD 6.6 amd64 patch 006, i get peculiar results from readlink(1) > with arguments -f with a symlink to / > > $ readlink -f / > / > > $ ln -s / test; readlink -f test; rm test > readlink: test: Is a directory That appears to be a

readlink -f / Bug|Glitch|Feature

2019-11-21 Thread Raimo Niskanen
On OpenBSD 6.6 amd64 patch 006, i get peculiar results from readlink(1) with arguments -f with a symlink to / $ readlink -f / / $ ln -s / test; readlink -f test; rm test readlink: test: Is a directory $ readlink -f /. / $ ln -s /. test; readlink -f test; rm test / I have tried with many