Fossil SCM
Update the comment for fossil_pledge to reflect the new change in [1180676e].
Commit
8993c3324a4caa49143182bdd0914488598773748a7a8bb5958f04c2e6f4f14d
Parent
1180676e9bd13b4…
1 file changed
+4
-4
+4
-4
| --- src/util.c | ||
| +++ src/util.c | ||
| @@ -487,14 +487,14 @@ | ||
| 487 | 487 | } |
| 488 | 488 | |
| 489 | 489 | #if defined(FOSSIL_HAVE_PLEDGE) |
| 490 | 490 | /* |
| 491 | 491 | ** Interface to pledge() on OpenBSD 5.9 and later. |
| 492 | -** | |
| 493 | -** There is a macro in config.h that make translates calls to | |
| 494 | -** "fossil_pledge(A,B)" into calls to this routine on OpenBSD. | |
| 495 | -** On all other platforms, this routine does not exist. | |
| 492 | +** | |
| 493 | +** On platforms that have pledge(), use this routine. | |
| 494 | +** On all other platforms, this routine does not exist, but instead | |
| 495 | +** a macro defined in config.h is used to provide a no-op. | |
| 496 | 496 | */ |
| 497 | 497 | void fossil_pledge(const char *promises, const char *execpromises){ |
| 498 | 498 | if( pledge(promises, execpromises) ){ |
| 499 | 499 | fossil_fatal("pledge(\"%s\",\"%s\") fails with errno=%d", |
| 500 | 500 | promises, execpromises, (int)errno); |
| 501 | 501 |
| --- src/util.c | |
| +++ src/util.c | |
| @@ -487,14 +487,14 @@ | |
| 487 | } |
| 488 | |
| 489 | #if defined(FOSSIL_HAVE_PLEDGE) |
| 490 | /* |
| 491 | ** Interface to pledge() on OpenBSD 5.9 and later. |
| 492 | ** |
| 493 | ** There is a macro in config.h that make translates calls to |
| 494 | ** "fossil_pledge(A,B)" into calls to this routine on OpenBSD. |
| 495 | ** On all other platforms, this routine does not exist. |
| 496 | */ |
| 497 | void fossil_pledge(const char *promises, const char *execpromises){ |
| 498 | if( pledge(promises, execpromises) ){ |
| 499 | fossil_fatal("pledge(\"%s\",\"%s\") fails with errno=%d", |
| 500 | promises, execpromises, (int)errno); |
| 501 |
| --- src/util.c | |
| +++ src/util.c | |
| @@ -487,14 +487,14 @@ | |
| 487 | } |
| 488 | |
| 489 | #if defined(FOSSIL_HAVE_PLEDGE) |
| 490 | /* |
| 491 | ** Interface to pledge() on OpenBSD 5.9 and later. |
| 492 | ** |
| 493 | ** On platforms that have pledge(), use this routine. |
| 494 | ** On all other platforms, this routine does not exist, but instead |
| 495 | ** a macro defined in config.h is used to provide a no-op. |
| 496 | */ |
| 497 | void fossil_pledge(const char *promises, const char *execpromises){ |
| 498 | if( pledge(promises, execpromises) ){ |
| 499 | fossil_fatal("pledge(\"%s\",\"%s\") fails with errno=%d", |
| 500 | promises, execpromises, (int)errno); |
| 501 |