[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [Toybox] ls -d broken (should not follow symlink)
From:       Rob Landley <rob () landley ! net>
Date:       2014-10-30 10:37:35
Message-ID: 545214EF.5080800 () landley ! net
[Download RAW message or body]

On 10/29/14 23:54, Isaac Dunham wrote:
> Hello,
> I've run across a bug that occurs in both busybox and toybox versions of ls.
> OS is Alpine Linux edge, which uses current musl and busybox 1.22.1.
> git log indicates no relevant changes to busybox ls.
> I'm using current toybox.
> 
> According to POSIX, "ls -d" means:
> -d     Do not follow symbolic links named as operands unless the -H  or
>        -L  options  are specified. Do not treat directories differently
>        than other types of files.  The  use  of  -d  with  -R  produces
>        unspecified results.
> 
> Simple testcase would be:
> ln -s /dev/null/nothing nothing	#make broken symlink
> ls -d nothing			#Which should say without error:
> 
> nothing

Got it.

http://landley.net/hg/toybox/rev/1540

Thanks,

Rob
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic