diff options
Diffstat (limited to 'net/upclient/patches/patch-aa')
-rw-r--r-- | net/upclient/patches/patch-aa | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/upclient/patches/patch-aa b/net/upclient/patches/patch-aa new file mode 100644 index 00000000000..bfaf540bb80 --- /dev/null +++ b/net/upclient/patches/patch-aa @@ -0,0 +1,18 @@ +$NetBSD: patch-aa,v 1.7 2002/05/07 22:25:03 hubertf Exp $ + +--- src/options.c Sat Jun 16 14:15:04 2001 ++++ src/options.c Tue Jun 19 10:48:25 2001 +@@ -298,8 +298,11 @@ + if(!(fp = fopen("/etc/"CONFIGFILE, "r"))) { + /* Failed, now try to open config file in /usr/local/etc */ + if(!(fp = fopen("/usr/local/etc/"CONFIGFILE, "r"))) { +- printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n", CONFIGFILE); +- exit(-1); ++ /* Failed, now try to open config file in /usr/pkg/etc */ ++ if (!(fp = fopen("/usr/pkg/etc/"CONFIGFILE, "r"))) { ++ printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n- /usr/pkg/etc\n", CONFIGFILE); ++ exit(-1); ++ } + } + } + } |