Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2011 14:49:16 GMT
From:      Cmyker <cmyk777@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/156225: test -x under root in bash shell returns incorrect results
Message-ID:  <201104061449.p36EnGF7040122@red.freebsd.org>
Resent-Message-ID: <201104061450.p36EoEPs011277@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156225
>Category:       misc
>Synopsis:       test -x under root in bash shell returns incorrect results
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 06 14:50:14 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Cmyker
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD www3 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
test -x under root in bash shell returns incorrect results

clone60# bash --version
GNU bash, version 4.1.7(0)-release (amd64-portbld-freebsd8.1)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
>How-To-Repeat:
Run under root:

www3# sh -c 'test -x ~/.cshrc && echo yes'
www3# bash -c 'test -x ~/.cshrc && echo yes'
yes
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104061449.p36EnGF7040122>