summaryrefslogtreecommitdiff
path: root/vms/vms.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2012-11-11 08:45:28 -0600
committerCraig A. Berry <craigberry@mac.com>2012-11-11 08:45:28 -0600
commit0c4f95ed2536f9279c6434cb8d6f3bf980e98a40 (patch)
tree09f4d8fbc99bf79417ff5b2288fc410667d4fb49 /vms/vms.c
parent6d1b7e1c32a986371a5c86564510eba53512052d (diff)
downloadperl-0c4f95ed2536f9279c6434cb8d6f3bf980e98a40.tar.gz
Set feature logical names in VMS init code.
When setting a CRTL feature, also record the setting in a user-mode logical name since historically checking the environment is the only way a Perl program can check a particular setting (otherwise we'd need the currently vaporware VMS::Feature extension).
Diffstat (limited to 'vms/vms.c')
-rw-r--r--vms/vms.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 6d6e527362..160f62ed13 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -104,7 +104,12 @@ static int set_feature_default(const char *name, int value)
return -1;
}
-return 0;
+ /* Various things may check for an environment setting
+ * rather than the feature directly, so set that too.
+ */
+ vmssetuserlnm(name, value ? "ENABLE" : "DISABLE");
+
+ return 0;
}
#endif