-N

-N

Append a null byte to all keys editmap command-line switch

The database files used for aliases always store keys with a null byte appended to each. When you use editmap on such a file, your key will not be found:

 %  editmap -q hash list-aliases user  editmap: couldn't find key user in map list-aliases 

This lookup failed because editmap normally omits a trailing null from a key before looking up its value. When looking up keys in aliases -style databases, you need to use the -N command-line switch to append a null to a key before a lookup:

 %  editmap -q -N hash list-aliases user  

Some database files (other than aliases ) also append a null byte to keys. These databases will appear with a corresponding -N in a K configuration file line. In such instances, you must use -N with editmap to match the K line's -N .



Sendmail
sendmail, 4th Edition
ISBN: 0596510292
EAN: 2147483647
Year: 2002
Pages: 1174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net