Source-Changes-HG archive

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

[src/netbsd-2-0]: src/etc/rc.d Pullup rev 1.19 (requested by atatat in ticket...



details:   https://anonhg.NetBSD.org/src/rev/f3f2343b18d1
branches:  netbsd-2-0
changeset: 562330:f3f2343b18d1
user:      jmc <jmc%NetBSD.org@localhost>
date:      Thu Aug 12 18:33:05 2004 +0000

description:
Pullup rev 1.19 (requested by atatat in ticket #753)

Switch the check to see if the corresponding db file needs to be
rebuilt from "newer than" to "not older than".  The latter check also
manages to take into account cases where the db file doesnt yet exist.

diffstat:

 etc/rc.d/sendmail |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r db5b5a66691c -r f3f2343b18d1 etc/rc.d/sendmail
--- a/etc/rc.d/sendmail Thu Aug 12 18:27:49 2004 +0000
+++ b/etc/rc.d/sendmail Thu Aug 12 18:33:05 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: sendmail,v 1.16.2.2 2004/07/23 08:38:10 tron Exp $
+# $NetBSD: sendmail,v 1.16.2.3 2004/08/12 18:33:05 jmc Exp $
 #
 
 # PROVIDE: mail
@@ -32,7 +32,7 @@
 
        # check modifications on /etc/mail/aliases
        if [ -f "/etc/mail/aliases.db" ]; then
-               if [ "/etc/mail/aliases" -nt "/etc/mail/aliases.db" ]; then
+               if [ ! "/etc/mail/aliases" -ot "/etc/mail/aliases.db" ]; then
                        echo \
            "${name}: /etc/mail/aliases newer than /etc/mail/aliases.db, regenerating"
                        /usr/bin/newaliases
@@ -46,7 +46,7 @@
        # check couple of common db files, too
        for f in access genericstable virtusertable domaintable mailertable; do
                if [ -r "/etc/mail/$f" -a \
-                   "/etc/mail/$f" -nt "/etc/mail/$f.db" ]; then
+                   ! "/etc/mail/$f" -ot "/etc/mail/$f.db" ]; then
                        echo \
     "${name}: /etc/mail/$f newer than /etc/mail/$f.db, regenerating"
                        /usr/sbin/makemap hash /etc/mail/$f < /etc/mail/$f



Home | Main Index | Thread Index | Old Index