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
The NetBSD Foundation, Inc.
System: NetBSD 5.99.51 NetBSD 5.99.51 (NELLY.MP) #157: Mon 
May 2 12:33:59 CEST 2011
Architecture: sparc64
Machine: sparc64

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.


        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.


Home | Main Index | Thread Index | Old Index