Red Hat Bugzilla – Bug 98814
Newline escaping not honoured
Last modified: 2015-01-07 19:05:49 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
Description of problem:
Editable versions of NIS map files such as netgroup may not use \
newline escaping because nothing in the /var/yp/Makefile script pipeline handles
it. This produces dbm maps that are incorrect.
Solaris NIS files may contain \ newline escapes because it's makedbm
utility handles them. The Linux version doesn't.
Alternatively, alterations to the NIS Makefile scripts to preprocess
map files could possibly resolve this incompatibility.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a map file such as netgroup with newline escapes
2. run make -f /var/yp/Makefile
3. try to get sensible information out of ypcat netgroup
I've marked this as low severity rather than feature enhancement
because there is no syntax checking or warning that newline escaping
is invalid. Anyone migrating NIS maps from Solaris will get caught out by this.
My apologies, please disregard this entire bug report.
Makedbm is handling newline escapes (just not documented).
My netgroup test file was missing commas between list elements.