NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/44950: fcntl(F_MAXFD) returns bogus values



>Number:         44950
>Category:       kern
>Synopsis:       fcntl(F_MAXFD) returns bogus values
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 10 13:20:00 +0000 2011
>Originator:     Martin Husemann
>Release:        NetBSD 5.99.51
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD nelly.aprisoft.de 5.99.51 NetBSD 5.99.51 (NELLY.MP) #157: Mon 
May 2 12:33:59 CEST 2011 
martin%emmas.aprisoft.de@localhost:/nelly/usr/src/sys/arch/sparc64/compile/NELLY.MP
 sparc64
Architecture: sparc64
Machine: sparc64
>Description:

The test case in /usr/tests/lib/libc/gen/t_closefrom fails when run when
invoked from a user with /bin/sh or /bin/ksh as shell, but works when invoked
from a (t)csch user.

>How-To-Repeat:

        cd /tmp
        /usr/tests/lib/libc/gen/t_closefrom closefrom_basic

Ktrace shows that fcntl(F_MAXFD) returns 3 in the csh case, but 9 in the
(k)sh one.

>Fix:
n/a



Home | Main Index | Thread Index | Old Index