Bug 486722 - ypbind script in dos format - bash syntax errors
Summary: ypbind script in dos format - bash syntax errors
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ypbind
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-21 13:09 UTC by John Ellson
Modified: 2009-02-26 15:17 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-02-26 15:17:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Ellson 2009-02-21 13:09:27 UTC
Description of problem:

root@ontap:~# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  
: command not foundrmation for eth0.../etc/dhcp/dhclient.d/nis.sh: line 23: 
: command not foundd/nis.sh: line 25: 
'etc/dhcp/dhclient.d/nis.sh: line 26: syntax error near unexpected token `{
'etc/dhcp/dhclient.d/nis.sh: line 26: `save_config_file() {
 done.
                                                           [  OK  ]

The problem is that /etc/dhcp/dhclient.d/nis.sh is a DOS formatted file, which produces bash syntax errors.

Version-Release number of selected component (if applicable):
ypbind-1.20.4-14.fc11.x86_64

How reproducible:
100%

Steps to Reproduce:
1. /etc/dhcp/dhclient.d/nis.sh
2.
3.
  
Actual results:
-bash: /etc/dhcp/dhclient.d/nis.sh: /bin/bash^M: bad interpreter: No such file or directory


Expected results:
no syntax errors

Additional info:
can be fixed with: 
    dos2unix /etc/dhcp/dhclient.d/nis.sh

Comment 1 Vitezslav Crhonek 2009-02-26 15:17:15 UTC
Thank you for report, fixed in ypbind-1.20.4-16.fc11.


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