This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/23017] New: daemon(0,0) doesn't report meaningfull errno (not set) if redirect fails
- From: "olivier.lahaye at cea dot fr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 29 Mar 2018 14:49:11 +0000
- Subject: [Bug libc/23017] New: daemon(0,0) doesn't report meaningfull errno (not set) if redirect fails
- Auto-submitted: auto-generated
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.