Fossil

Check-in [b5e09375]
Login

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

Overview
Comment:Minor cleanup (no change in functionality).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | pending-review
Files: files | file ages | folders
SHA1: b5e09375185ff3e83affb434404c2ed9645ec7b2
User & Date: andybradford 2014-04-30 07:11:55
Context
2014-04-30
07:54
On second thought, make this also work for fossil server as well which has the same problem. Closed-Leaf check-in: 644e78cc user: andybradford tags: pending-review
07:11
Minor cleanup (no change in functionality). check-in: b5e09375 user: andybradford tags: pending-review
07:07
Potential fix to allow fossil ui to be run as root---reopen the database after dropping privileges. check-in: d5432cf6 user: andybradford tags: pending-review
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/main.c.

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);
    }
    if( g.db==0 && isUiCmd){
      db_open_repository(zRepo);
    }
  }
#endif
  return zRepo;
}








|







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);
    }
    if( g.db==0 && isUiCmd ){
      db_open_repository(zRepo);
    }
  }
#endif
  return zRepo;
}