Fossil

Check-in [1050f2e7]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix to the chroot() fix: Get Fossil working again for xinetd access.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:1050f2e75fb8105a87c92056eaf8ad15a579e746
User & Date: drh 2013-09-30 13:29:45
References
2013-10-09
10:52 Fixed ticket [01425fd4]: Fossil server not working plus 4 other changes artifact: 79544d7b user: stephan
Context
2013-09-30
13:32
Improvements to the header of from/to timelines. check-in: 564d75b0 user: drh tags: trunk
13:29
Fix to the chroot() fix: Get Fossil working again for xinetd access. check-in: 1050f2e7 user: drh tags: trunk
11:39
Silence harmless compiler warning. check-in: 16113acc user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/main.c.

1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
      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);
    }
    db_open_repository(zRepo);
  }
#endif
  return zRepo;
}

/*
** Preconditions:







<







1178
1179
1180
1181
1182
1183
1184

1185
1186
1187
1188
1189
1190
1191
      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);
    }

  }
#endif
  return zRepo;
}

/*
** Preconditions: