bugSystem V style init programs - Bugs: bug #35311, can't determine console name when...


bug #35311: can't determine console name when using kernel < 2.6.38 with newer headers

Submitted by:  None
Submitted on:  Sun 15 Jan 2012 11:02:23 AM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  Jesse <newguy>
Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 07 Apr 2018 11:16:11 PM UTC, comment #2:

I think this was quietly changed in another version of bootlogd. I looked at the patch and the current version of the function and this piece, where errno is checked, doesn't exist anymore.

I'm going to mark this one as solved since the code has been altered enough that this report and accompany patch appears to have been addressed in the past by another patch.

Please file a new bug if the kernel header version still causes an error.

Jesse <newguy>
Project MemberIn charge of this item.
Sun 15 Jan 2012 11:06:58 AM UTC, comment #1:

This causes bootlogd to silently fail with exit code 1.

Jonathan Liu <net147>
Sun 15 Jan 2012 11:02:23 AM UTC, original submission:

If using newer kernel headers that define TIOCGDEV on older kernel that doesn't support it, calling TIOCGDEV ioctl returns EINVAL but bootlogd.c consolename() function only expects ENOIOCTLCMD. consolename() function should also check for EINVAL and continue instead of giving up.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #24825:  tiocgdev.patch added by None (444B - application/octet-stream - Patch to fix bug)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by newguy (Updated the item)
  • -email is unavailable- added by net147 (Posted a comment)
  • -email is unavailable- added by net147

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-07 newguy StatusNone => Fixed
        Open/ClosedOpen => Closed
    2018-04-04 newguy Assigned toNone => newguy
    2012-01-15 net147 Carbon-Copy- => Added net147
    2012-01-15 None Attached File- => Added tiocgdev.patch, #24825

    Back to the top

    Powered by Savane 3.3