Bug 1916 - UTIL_STR.C - OpenVMS needs '$' not to be substituted.
Summary: UTIL_STR.C - OpenVMS needs '$' not to be substituted.
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.7
Hardware: Alpha OpenVMS
: P3 enhancement
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-11 18:05 UTC by John Malmberg
Modified: 2019-06-11 21:25 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Malmberg 2004-10-11 18:05:08 UTC
Tracking entry for a VMS specific issue in util_str.c/string_sub()

The $ character has a different meaning in OpenVMS DCL shell commands than with
UNIX, and substituting an underscore for it can cause failures.

In OpenVMS, the presence of a $ in a filename, environment symbol, or other
system resource name is used to indicate that the use of that name is reserved
to OpenVMS designated uses, and it prevents name space collisions.

Of course because the bash shell is optionally available on OpenVMS,
consideration may be needed to prevent exploits, if this is what the string
substitution is suppose to prevent.
Comment 1 Andrew Bartlett 2019-06-11 15:27:18 UTC
While there are still relatively recent efforts to compile Samba on OpenVMS (I found an almost-successful effort on 4.3: http://www.ccsscorp.com/VMSblog/index.php?m=05&y=16&entry=entry160521-083131 ), I sadly don't think that we can safely make such an exception for OpenVMS.

Sorry!