Skip to navigation

Bug Fix Advisory dos2unix and unix2dos bug fix update

Advisory: RHBA-2005:195-04
Type: Bug Fix Advisory
Severity: N/A
Issued on: 2005-05-19
Last updated on: 2005-05-19
Affected Products: Red Hat Desktop (v. 3)
Red Hat Enterprise Linux AS (v. 3)
Red Hat Enterprise Linux ES (v. 3)
Red Hat Enterprise Linux WS (v. 3)

Details

Updated dos2unix and unix2dos packages that resolve various bugs are now
available.

The dos2unix utility converts DOS or MAC format text files to UNIX
format. The unix2dos utility converts plain text files in UNIX format to
DOS format.

A number of problems have been fixed in dos2unix and unix2dos
in this update, including:

- failure to preserve the file mode when converting text files
- files inadvertently deleted when the input and output files
are on different filesystems
- documentation updates

Users of dos2unix and unix2dos should upgrade to these updated packages,
which resolve these issues.


Solution

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied. Use Red Hat
Network to download and update your packages. To launch the Red Hat
Update Agent, use the following command:

up2date

For information on how to install packages manually, refer to the
following Web page for the System Administration or Customization
guide specific to your system:

http://www.redhat.com/docs/manuals/enterprise/

Updated packages

Red Hat Desktop (v. 3)

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/SRPMS/dos2unix-3.1-15.EL.22.src.rpm
Missing file
    MD5: 6b900cac53829f38602df5fc50d3bb3b
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/SRPMS/unix2dos-2.2-19.EL.25.src.rpm
Missing file
    MD5: f74877554128769d9364351faaf5c1d4
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/i386/dos2unix-3.1-15.EL.22.i386.rpm
Missing file
    MD5: d8bc38e25c9e2ca518629829cae4ae20
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/i386/unix2dos-2.2-19.EL.25.i386.rpm
Missing file
    MD5: c22c25b902d636f461bcae03f8e88986
 
x86_64:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/x86_64/dos2unix-3.1-15.EL.22.x86_64.rpm
Missing file
    MD5: 170362bf91ba8418c92483f20cd8eb2d
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/x86_64/unix2dos-2.2-19.EL.25.x86_64.rpm
Missing file
    MD5: 30578345076a4c277f418dda75b3fdc0
 
Red Hat Enterprise Linux AS (v. 3)

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/SRPMS/dos2unix-3.1-15.EL.22.src.rpm
Missing file
    MD5: 6b900cac53829f38602df5fc50d3bb3b
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/SRPMS/unix2dos-2.2-19.EL.25.src.rpm
Missing file
    MD5: f74877554128769d9364351faaf5c1d4
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/i386/dos2unix-3.1-15.EL.22.i386.rpm
Missing file
    MD5: d8bc38e25c9e2ca518629829cae4ae20
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/i386/unix2dos-2.2-19.EL.25.i386.rpm
Missing file
    MD5: c22c25b902d636f461bcae03f8e88986
 
IA-64:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/ia64/dos2unix-3.1-15.EL.22.ia64.rpm
Missing file
    MD5: 9ccef01a335e7772955d5be51c8d4e03
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/ia64/unix2dos-2.2-19.EL.25.ia64.rpm
Missing file
    MD5: c10280d03be3b2ef6042d0852f95ab13
 
PPC:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/ppc/dos2unix-3.1-15.EL.22.ppc.rpm
Missing file
    MD5: f35aeb95e3ddc9023c658448f5b53962
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/ppc/unix2dos-2.2-19.EL.25.ppc.rpm
Missing file
    MD5: 0e855bfbb5476b16ac0c786edfbf90a7
 
s390:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/s390/dos2unix-3.1-15.EL.22.s390.rpm
Missing file
    MD5: dd25487af19351f8419d9dd9980dcb69
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/s390/unix2dos-2.2-19.EL.25.s390.rpm
Missing file
    MD5: 2c8d33882b0fac226b2d4a864d9fd843
 
s390x:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/s390x/dos2unix-3.1-15.EL.22.s390x.rpm
Missing file
    MD5: 640ddd7dcf23ca2bcf66474b730879fa
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/s390x/unix2dos-2.2-19.EL.25.s390x.rpm
Missing file
    MD5: f5f2580ecc6eeccbea3e4c30731656a1
 
x86_64:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/x86_64/dos2unix-3.1-15.EL.22.x86_64.rpm
Missing file
    MD5: 170362bf91ba8418c92483f20cd8eb2d
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/x86_64/unix2dos-2.2-19.EL.25.x86_64.rpm
Missing file
    MD5: 30578345076a4c277f418dda75b3fdc0
 
Red Hat Enterprise Linux ES (v. 3)

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/SRPMS/dos2unix-3.1-15.EL.22.src.rpm
Missing file
    MD5: 6b900cac53829f38602df5fc50d3bb3b
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/SRPMS/unix2dos-2.2-19.EL.25.src.rpm
Missing file
    MD5: f74877554128769d9364351faaf5c1d4
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/i386/dos2unix-3.1-15.EL.22.i386.rpm
Missing file
    MD5: d8bc38e25c9e2ca518629829cae4ae20
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/i386/unix2dos-2.2-19.EL.25.i386.rpm
Missing file
    MD5: c22c25b902d636f461bcae03f8e88986
 
IA-64:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/ia64/dos2unix-3.1-15.EL.22.ia64.rpm
Missing file
    MD5: 9ccef01a335e7772955d5be51c8d4e03
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/ia64/unix2dos-2.2-19.EL.25.ia64.rpm
Missing file
    MD5: c10280d03be3b2ef6042d0852f95ab13
 
x86_64:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/x86_64/dos2unix-3.1-15.EL.22.x86_64.rpm
Missing file
    MD5: 170362bf91ba8418c92483f20cd8eb2d
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/x86_64/unix2dos-2.2-19.EL.25.x86_64.rpm
Missing file
    MD5: 30578345076a4c277f418dda75b3fdc0
 
Red Hat Enterprise Linux WS (v. 3)

SRPMS:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/SRPMS/dos2unix-3.1-15.EL.22.src.rpm
Missing file
    MD5: 6b900cac53829f38602df5fc50d3bb3b
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/SRPMS/unix2dos-2.2-19.EL.25.src.rpm
Missing file
    MD5: f74877554128769d9364351faaf5c1d4
 
IA-32:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/i386/dos2unix-3.1-15.EL.22.i386.rpm
Missing file
    MD5: d8bc38e25c9e2ca518629829cae4ae20
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/i386/unix2dos-2.2-19.EL.25.i386.rpm
Missing file
    MD5: c22c25b902d636f461bcae03f8e88986
 
IA-64:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/ia64/dos2unix-3.1-15.EL.22.ia64.rpm
Missing file
    MD5: 9ccef01a335e7772955d5be51c8d4e03
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/ia64/unix2dos-2.2-19.EL.25.ia64.rpm
Missing file
    MD5: c10280d03be3b2ef6042d0852f95ab13
 
x86_64:
ftp://updates.redhat.com/rhn/repository/NULL/dos2unix/3.1-15.EL.22/x86_64/dos2unix-3.1-15.EL.22.x86_64.rpm
Missing file
    MD5: 170362bf91ba8418c92483f20cd8eb2d
ftp://updates.redhat.com/rhn/repository/NULL/unix2dos/2.2-19.EL.25/x86_64/unix2dos-2.2-19.EL.25.x86_64.rpm
Missing file
    MD5: 30578345076a4c277f418dda75b3fdc0
 

Bugs fixed (see bugzilla for more information)

112710 - not retaining the file permission.
123069 - dos2unix delete files.
132145 - dos2unix doesn't preserve the file permissions
136148 - missing return statement
55183 - dos2unix mangles file permissions
57507 - man page deficiencies for dos2unix
57508 - dos2unix erroneously strips \r
65548 - dos2unix fails when output is on other file system
80493 - unix2dos fails when converting a file not in partition of CWD
91331 - dos2unix doesn't preserve mode
91332 - unix2dos doesn't preserve mode



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/