Fossil SCM

Fix to the chroot() fix: Get Fossil working again for xinetd access.

drh 2013-09-30 13:29 trunk
Commit 1050f2e75fb8105a87c92056eaf8ad15a579e746
1 file changed -1
-1
--- src/main.c
+++ src/main.c
@@ -1180,11 +1180,10 @@
11801180
i = setgid(sStat.st_gid);
11811181
i = i || setuid(sStat.st_uid);
11821182
if(i){
11831183
fossil_fatal("setgid/uid() failed with errno %d", errno);
11841184
}
1185
- db_open_repository(zRepo);
11861185
}
11871186
#endif
11881187
return zRepo;
11891188
}
11901189
11911190
--- src/main.c
+++ src/main.c
@@ -1180,11 +1180,10 @@
1180 i = setgid(sStat.st_gid);
1181 i = i || setuid(sStat.st_uid);
1182 if(i){
1183 fossil_fatal("setgid/uid() failed with errno %d", errno);
1184 }
1185 db_open_repository(zRepo);
1186 }
1187 #endif
1188 return zRepo;
1189 }
1190
1191
--- src/main.c
+++ src/main.c
@@ -1180,11 +1180,10 @@
1180 i = setgid(sStat.st_gid);
1181 i = i || setuid(sStat.st_uid);
1182 if(i){
1183 fossil_fatal("setgid/uid() failed with errno %d", errno);
1184 }
 
1185 }
1186 #endif
1187 return zRepo;
1188 }
1189
1190

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button