Bug 56993 - undefined function delim() in create_printcap
undefined function delim() in create_printcap
Product: Red Hat Linux
Classification: Retired
Component: ypserv (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-12-02 10:40 EST by Alexander Kanevskiy
Modified: 2007-04-18 12:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-12-08 16:13:48 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Alexander Kanevskiy 2001-12-02 10:40:35 EST
Description of Problem:
create_printcap not working.

Version-Release number of selected component (if applicable):

How Reproducible:
[root@kadhome yp]# cat /etc/printcap
[root@kadhome yp]# make printcap
Updating printcap...
awk: /usr/lib/yp/create_printcap:24: (FILENAME=- FNR=17) fatal: function 
`delim' not defined
failed to send 'clear' to local ypserv: RPC: Program not registered
[root@kadhome yp]#

Steps to Reproduce:

Actual Results:

Expected Results:

Additional Information:
Comment 1 Tony Kocurko 2001-12-06 07:58:22 EST
In /var/lib/yp/create_printcap, change this string:

  "suffix = delim(++count[name])"

to this string:

  "suffix = delim (++count[name])"

Notice that in the version as supplied, the lack of a space between the variable
name "delim" and the expression "(++count[name])" causes gawk to treat the right
hand side as a function invocation rather than as a concatenation, as was
clearly intended by the author.

Tony Kocurko
Seismological Systems Manager
Department of Earth Sciences
Alexander Murray Building - Room ER-4063
Memorial University of Newfoundland
St. John's, Newfoundland
Canada    A1B 3X5
Comment 2 Florian La Roche 2001-12-08 16:13:43 EST
Fixed in 2.2-2 or higher.

Thanks a lot for this good bug-report,

Florian La Roche

Note You need to log in before you can comment on or make changes to this bug.