Fossil SCM

Update the comment for fossil_pledge to reflect the new change in [1180676e].

andybradford 2018-01-15 21:48 trunk
Commit 8993c3324a4caa49143182bdd0914488598773748a7a8bb5958f04c2e6f4f14d
1 file changed +4 -4
+4 -4
--- src/util.c
+++ src/util.c
@@ -487,14 +487,14 @@
487487
}
488488
489489
#if defined(FOSSIL_HAVE_PLEDGE)
490490
/*
491491
** 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.
496496
*/
497497
void fossil_pledge(const char *promises, const char *execpromises){
498498
if( pledge(promises, execpromises) ){
499499
fossil_fatal("pledge(\"%s\",\"%s\") fails with errno=%d",
500500
promises, execpromises, (int)errno);
501501
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button