Re: [dev] [sbase] [PATCH v3] ls: Handle symlinks to directories properly

2014-12-08 Thread Eric Pruitt
On Mon, Dec 08, 2014 at 08:27:07PM -0800, Michael Forney wrote: > When you lstat "foo/", where foo is a symlink to a directory, you look > up information about the directory, not the symlink. > [...] > > See, this example (pruned for the system calls that matter) > > $ strace ls -l foo > lstat("foo

Re: [dev] [sbase] [PATCH v3] ls: Handle symlinks to directories properly

2014-12-08 Thread Michael Forney
On Mon, Dec 08, 2014 at 04:21:30PM -0800, Eric Pruitt wrote: > Unless I'm missing something, I still don't see anything in that patch > pertaining to the interpretation of slashes. I'm not sure what you're expecting... When you lstat "foo/", where foo is a symlink to a directory, you look up info

Re: [dev] [sbase] [PATCH v3] ls: Handle symlinks to directories properly

2014-12-08 Thread Eric Pruitt
Unless I'm missing something, I still don't see anything in that patch pertaining to the interpretation of slashes. Eric

[dev] [sbase] [PATCH v3] ls: Handle symlinks to directories properly

2014-12-07 Thread Michael Forney
Also, implement the -H and -L options. --- Again, not sure how to handle the long line. ls.1 | 9 - ls.c | 32 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/ls.1 b/ls.1 index ec61bee..792b07b 100644 --- a/ls.1 +++ b/ls.1 @@ -3,7 +3,7 @@