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

Submitter:  None
Submitted:  Sun 15 Jan 2012 11:02:23 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  newguy
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    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.13-d3ae.
    Corresponding source code