On Sun, May 09, 2010 at 09:01:41PM -0500, Raphael Geissert wrote:
> Hi again,
> 
> Upstream's commit 1d68712ba[1] should really fix it.
> 
> Would be great if you could confirm.
> 
> [1]http://git.kernel.org/?p=utils/dash/dash.git;a=commitdiff;h=1d68712ba2e439f36874c4ed1e3d9ffec177a06c

hrm. no luck.

to test, i ran the following script, once with bash, once with dash, once with
/bin/sh as bash, and once with /bin/sh as dash:

  set -x
  [ -w / ] ; echo $?
  test -w / ; echo $?
  /usr/bin/test -w / ; echo $?

/usr/bin/test and bash always correctly return 1, and dash always returns 0,
with or without the above mentioned patch applied (dash 0.5.5.1-3 with above
patch).

"stat /" output:

File: `/'
Size: 4096            Blocks: 8          IO Block: 65536  directory
Device: 11h/17d Inode: 56451       Links: 20
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2010-05-12 16:12:33.000000000 -0700
Modify: 2010-05-12 16:15:02.000000000 -0700
Change: 2010-05-12 16:15:02.000000000 -0700

"mount | grep ' / '" output:

rootfs on / type rootfs (rw)
192.168.0.1:/opt/ltsp/i386 on / type nfs 
(rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,nolock,proto=tcp,port=65535,timeo=7,retrans=10,sec=sys,mountport=65535,addr=192.168.0.1)
  

live well,
  vagrant



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to