samba 2.2.8/util_str.c - Why is '$' exempted from '_' replac ement?

COLLOT Jean-Yves jean-yves.collot at cofiroute.fr
Mon Oct 11 09:49:23 GMT 2004


Well, basically the "$" character has a special signification on Unix which
it has not in VMS. Replacing "$" with "_" may be useful in a number of
cases, but just let's take an example where it must not be done.

If you keep the default parameters for a print queue, the "print command"
should be "print %f/queue=%p/delete/passall".

So, now, try to create a printer share named SYS$PRINT, or try, on any
printer share, to print a file named TOTO$TEXT.LOG. If you remove the '$'
exemption in UTIL_SRC.C, the "%f" part of the command will be replaced by
"TOTO_TEXT.LOG", and the queue name (%p) will be replaced by "SYS_PRINT".

It will not work so well...

JY

-----Message d'origine-----
De : John E. Malmberg [mailto:wb8tyw at qsl.net] 
Envoyé : vendredi 8 octobre 2004 06:21
À : samba-vms at lists.samba.org
Objet : samba 2.2.8/util_str.c - Why is '$' exempted from '_' replacement?

The module [.lib]time.c has a VMS specific edit to exempt the '$' 
character from being replaced with an underscore.

So far I can not find a reason that VMS needs this change.

-John
wb8tyw at qsl.net
Personal Opinion Only

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


More information about the samba-vms mailing list