Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Remove call of "getuid()" added on previous commit because it is not available on windows. For the pledge() call, always allow "chown" for now, even if not running as root. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6b41a7e803348a9247818a66c9b968a9 |
User & Date: | mgagnon 2018-01-19 19:15:43.355 |
Context
2018-01-21
| ||
22:59 | Correctly show the edited and original comments on the /info page for check-ins. Fixes a bug spotted by Stephan Beal. ... (check-in: f5bcc25a user: drh tags: trunk) | |
2018-01-20
| ||
20:46 | It isn't necessary to allow id either for the status command as nobody should be trying to setuid. ... (check-in: 866f92fa user: andybradford tags: pledge-additions) | |
2018-01-19
| ||
19:15 | Remove call of "getuid()" added on previous commit because it is not available on windows. For the pledge() call, always allow "chown" for now, even if not running as root. ... (check-in: 6b41a7e8 user: mgagnon tags: trunk) | |
18:06 | If running "fossil status" when pledge() is enabled, the "chown" promise needs to be added when running as root, otherwise fossil receive a SIGABRT and crash when attempting to call fchown(...) on creation of the .fossil-journal file. ... (check-in: 396513fa user: mgagnon tags: trunk) | |
Changes
Changes to src/checkin.c.
︙ | ︙ | |||
470 471 472 473 474 475 476 | int showHdr = command==CHANGES && find_option("header", 0, 0); int verboseFlag = command==CHANGES && find_option("verbose", "v", 0); const char *zIgnoreFlag = find_option("ignore", 0, 1); unsigned scanFlags = 0; unsigned flags = 0; int vid, i; | < | < < < | 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 | int showHdr = command==CHANGES && find_option("header", 0, 0); int verboseFlag = command==CHANGES && find_option("verbose", "v", 0); const char *zIgnoreFlag = find_option("ignore", 0, 1); unsigned scanFlags = 0; unsigned flags = 0; int vid, i; fossil_pledge("stdio rpath wpath cpath id flock tty chown"); /* Load affirmative flag options. */ for( i=0; i<count(flagDefs); ++i ){ if( (command==CHANGES || !(flagDefs[i].mask & C_CLASSIFY)) && find_option(flagDefs[i].option, 0, 0) ){ flags |= flagDefs[i].mask; } |
︙ | ︙ |