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.
According to the documentation, the constructor "takes one argument
Filenamewhich will set the file which is to be used in place of that defined in _PATH_UTMP." But this does not work reliably: If theFilenameargument refers to a file that does not exist, or you don't havestat()permissions for, or is empty (file size 0), it is silently ignored and the system utmp file is used instead.