]> granicus.if.org Git - openssl/commit
Adding a slash between the directoryt and the file is a problem with
authorRichard Levitte <levitte@openssl.org>
Sat, 10 Jan 2004 18:04:38 +0000 (18:04 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 10 Jan 2004 18:04:38 +0000 (18:04 +0000)
commitaf6dab9b003c030512442d92a65c85b2e454beef
treeca0a0585c2fd847d01db2b29a6a3a48241b48ba2
parentcdb42bcf0cbd5e7625ebab7c3df7caf8eb94764d
Adding a slash between the directoryt and the file is a problem with
VMS.  The C RTL can handle it well if the "directory" is a logical
name with no colon, therefore ending being 'logname/file'.  However,
if the given logical names actually has a colon, or if you use a full
VMS-syntax directory, you end up with 'logname:/file' or
'dev:[dir1.dir2]/file', and that isn't handled in any good way.

So, on VMS, we need to check if the directory string ends with a
separator (one of ':', ']' or '>' (< and > can be used instead [ and
])), and handle that by not inserting anything between the directory
spec and the file name.  In all other cases, it's assumed the
directory spec is a logical name, so we need to place a colon between
it and the file.

Notified by Kevin Greaney <kevin.greaney@hp.com>.
crypto/x509/by_dir.c