Bug 98814

Summary: Newline escaping not honoured
Product: [Retired] Red Hat Linux Reporter: Ross Johnson <rpj>
Component: ypservAssignee: Steve Dickson <steved>
Status: CLOSED NOTABUG QA Contact: Jay Turner <jturner>
Severity: low Docs Contact:
Priority: medium    
Version: 9CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-09 10:21:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ross Johnson 2003-07-09 03:52:02 UTC
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):
ypserv-2.6-2

How reproducible:
Always

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
    

Additional info:

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.

Comment 1 Ross Johnson 2003-07-09 10:21:02 UTC
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.