aboutsummaryrefslogtreecommitdiff
path: root/sysutils/cfengine35/files/patch-libpromises-expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/cfengine35/files/patch-libpromises-expand.c')
-rw-r--r--sysutils/cfengine35/files/patch-libpromises-expand.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysutils/cfengine35/files/patch-libpromises-expand.c b/sysutils/cfengine35/files/patch-libpromises-expand.c
new file mode 100644
index 000000000000..49890fdd3813
--- /dev/null
+++ b/sysutils/cfengine35/files/patch-libpromises-expand.c
@@ -0,0 +1,10 @@
+--- libpromises/expand.c.orig 2014-03-31 18:24:39.000000000 +0000
++++ libpromises/expand.c 2014-03-31 18:25:10.000000000 +0000
+@@ -787,6 +787,7 @@
+ ScopeNewSpecial(ctx, "this", "promise_linenumber", number, DATA_TYPE_STRING);
+ }
+
++ ScopeNewSpecial(ctx, "this", "promiser", pp->promiser, DATA_TYPE_STRING);
+ snprintf(v, CF_MAXVARSIZE, "%d", (int) getuid());
+ ScopeNewSpecial(ctx, "this", "promiser_uid", v, DATA_TYPE_INT);
+ snprintf(v, CF_MAXVARSIZE, "%d", (int) getgid());