Skip to content

Specified filename is silently ignored if file is empty #2

@mauke

Description

@mauke

According to the documentation, the constructor "takes one argument Filename which will set the file which is to be used in place of that defined in _PATH_UTMP." But this does not work reliably: If the Filename argument refers to a file that does not exist, or you don't have stat() permissions for, or is empty (file size 0), it is silently ignored and the system utmp file is used instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions