git: DragonFly_RELEASE_5_6 libc/utmpx: Fix updwtmpx() across newsyslog rotation of /var/log/wtmpx.

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Aug 9 10:25:30 PDT 2019


commit 8343a3f428174acd377c66319610d9f7098cd60e
Author: Sascha Wildner <saw at online.de>
Date:   Fri Aug 9 19:19:07 2019 +0200

    libc/utmpx: Fix updwtmpx() across newsyslog rotation of /var/log/wtmpx.
    
    When /var/log/wtmpx is rotated by newsyslog(8), an empty /var/log/wtmpx
    is created. Fix updwtmpx() to write the signature record this case as
    well. This signature record is used by setutxdb() to verify the file.

Summary of changes:
 lib/libc/gen/utmpx.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8343a3f428174acd377c66319610d9f7098cd60e


-- 
DragonFly BSD source repository


More information about the Commits mailing list