This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23017] New: daemon(0,0) doesn't report meaningfull errno (not set) if redirect fails


https://sourceware.org/bugzilla/show_bug.cgi?id=23017

            Bug ID: 23017
           Summary: daemon(0,0) doesn't report meaningfull errno (not set)
                    if redirect fails
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: olivier.lahaye at cea dot fr
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

misc/daemon.c:89 errno is not set to a meaningfull value.

for example, calling daemon(0,0) with a buggy /dev/null (not a char device in
my situation) returned errno 37 (ENOLCK / No record locks available).

(I was trying to start gpm after a switchroot that had /dev/null locked before
switchroot and discovered that while daemon reported no lock available, the
real problem was /dev/null being is a buggy state behave like a char device,
but listed as a normal file (a bug from udev or systemd or other component)).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]