Differences From Artifact [b41ef5d649]:
- File src/main.c — part of check-in [d5432cf6c3] at 2014-04-30 07:07:16 on branch pending-review — Potential fix to allow fossil ui to be run as root---reopen the database after dropping privileges. (user: andybradford size: 69466)
To Artifact [5ac1e44e86]:
- File src/main.c — part of check-in [b5e0937518] at 2014-04-30 07:11:55 on branch pending-review — Minor cleanup (no change in functionality). (user: andybradford size: 69467)
| ︙ | |||
1265 1266 1267 1268 1269 1270 1271 | 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 | - + |
fossil_fatal("cannot stat() repository: %s", zRepo);
}
i = setgid(sStat.st_gid);
i = i || setuid(sStat.st_uid);
if(i){
fossil_fatal("setgid/uid() failed with errno %d", errno);
}
|
| ︙ |