Bug 2206 - NIS Makefile can't manage appletalk entries
Summary: NIS Makefile can't manage appletalk entries
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 2.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1996-12-13 09:30 UTC by Andre.Albsmeier
Modified: 1998-02-13 03:43 UTC (History)
0 users

See Also:


Attachments
file.diff (1.09 KB, patch)
1996-12-13 09:30 UTC, Andre.Albsmeier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andre.Albsmeier 1996-12-13 09:30:00 UTC
When using netatalk, there are 4 lines that have to be added to /etc/services:

rtmp            1/ddp                           # Routing Table Maintenance
nbp             2/ddp                           # Name Binding Protocol
echo            4/ddp                           # AppleTalk Echo Protocol
zip             6/ddp                           # Zone Information Protocol

However, when using the same machine as NIS master, building the NIS maps
fails due to the fact that the Makefile knows nothing about ddp.

Fix: My quick and dirty hack is (I am no awk expert:-)):
How-To-Repeat: 
Add the upper 4 lines to /etc/services (or the NIS master file) and build
the NIS maps.
Comment 1 Bill Paul freebsd_committer freebsd_triage 1998-02-13 03:39:57 UTC
State Changed
From-To: open->closed

i 
Fixed in -current and the 2.2.x branch. Rather than special-casing the 
extra protocol, I used the awk split() function to extract the protocol 
from the field no matter what it happens to be. This is a more general 
solution which I hope will cope with any new protocols that might turn 
up in /etc/services. :)