File: ignore_missing_inetdconf

package info (click to toggle)
tcp-wrappers 7.6.q-32
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,844 kB
  • sloc: ansic: 17,852; makefile: 2,301; sh: 92
file content (13 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/inetcf.c
+++ b/inetcf.c
@@ -90,9 +90,7 @@ char   *conf;
 	for (i = 0; inet_files[i] && (fp = fopen(inet_files[i], "r")) == 0; i++)
 	     /* void */ ;
 	if (fp == 0) {
-	    fprintf(stderr, "Cannot find your inetd.conf or tlid.conf file.\n");
-	    fprintf(stderr, "Please specify its location.\n");
-	    exit(1);
+	    return inet_files[i];
 	}
 	conf = inet_files[i];
 	check_path(conf, &st);