[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mergemaster warning



This concerns all people who use my unofficial mergemaster port to
handle /etc when updating their systems.  Rémi Guyomarch
<rguyom@pobox.com> has pointed out a serious problem.

If you install an updated /etc/login.conf, mergemaster will prompt
you:
*** You installed a login.conf file, so make sure that you run"
    'cap_mkdb /etc/login.conf' to rebuild your login.conf database"

Executing this command will create an _empty_ /etc/login.conf.db
data base file (0 records, not an empty file), and you won't be
able to login anymore.  Rémi has documented this in PR #1561.

You don't need to rebuild the database unless it already exists,
anyway.  (I may add a check to mergemaster to reflect this.)  So
just don't run cap_mkdb on login.conf and delete any existing
login.conf.db.

For some reason the behavior of cap_mkdb(1) differs in this respect
between FreeBSD and OpenBSD.  I'm looking into this now.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de