* setup.c: look in both /etc/rc*.d and /etc/rc.d/rc*.d for other
authorArt Cancro <ajc@citadel.org>
Sat, 11 Sep 2004 03:43:09 +0000 (03:43 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 11 Sep 2004 03:43:09 +0000 (03:43 +0000)
  MTA's to disable

citadel/setup.c

index cc9dc274e4978b3e524a5ae7fb3882edfd4992a0..bd3196adf3cfbd21069d04a7eaf9d2ae24dddd39 100644 (file)
@@ -609,7 +609,9 @@ void disable_other_mta(char *mta) {
        FILE *fp;
        int lines = 0;
 
-       sprintf(buf, "/bin/ls -l /etc/rc*.d/S*%s 2>/dev/null", mta);
+       sprintf(buf, "/bin/ls -l /etc/rc*.d/S*%s 2>/dev/null; "
+               "/bin/ls -l /etc/rc.d/rc*.d/S*%s 2>/dev/null",
+               mta, mta);
        fp = popen(buf, "r");
        if (fp == NULL) return;