summaryrefslogtreecommitdiff
path: root/misc/sword15/files/patch-src::mgr::swmgr.cpp
blob: 8fbcea84d1bbb38dcd758b41e9e0cdcd1190ce05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- src/mgr/swmgr.cpp.orig	Tue May 22 22:05:15 2001
+++ src/mgr/swmgr.cpp	Tue May 22 22:05:53 2001
@@ -263,25 +263,25 @@
 	}
 
 
-	// check for systemwide /etc/sword.conf
+	// check for systemwide /usr/local/etc/sword.conf
 
 if (debug)
-	cerr << "\nChecking for /etc/sword.conf...";
+	cerr << "\nChecking for /usr/local/etc/sword.conf...";
 
-	if ((fd = ::open("/etc/sword.conf", O_RDONLY)) > 0) {
+	if ((fd = ::open("/usr/local/etc/sword.conf", O_RDONLY)) > 0) {
 		::close(fd);
 
 if (debug)
 	cerr << "found\n";
 
-		SWConfig etcconf("/etc/sword.conf");
+		SWConfig etcconf("/usr/local/etc/sword.conf");
 		if ((entry = etcconf.Sections["Install"].find("DataPath")) != etcconf.Sections["Install"].end()) {
 			path = (*entry).second;
 			if (((*entry).second.c_str()[strlen((*entry).second.c_str())-1] != '\\') && ((*entry).second.c_str()[strlen((*entry).second.c_str())-1] != '/'))
 				path += "/";
 
 if (debug)
-	cerr << "DataPath in /etc/sword.conf is set to: " << path;
+	cerr << "DataPath in /usr/local/etc/sword.conf is set to: " << path;
 
 if (debug)
 	cerr << "\nChecking for mods.conf in DataPath ";