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

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Aug 9 10:18:53 PDT 2019


commit 213919215594bb9206b672d218e71e2bf64c647b
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/213919215594bb9206b672d218e71e2bf64c647b


-- 
DragonFly BSD source repository



More information about the Commits mailing list