Bugzilla – Bug 119350
dos2unix, mac2unix and unix2dos don't preserve permissions
Last modified: 2007-07-27 01:53:23 UTC
dos2unix, mac2unix and unix2dos don't preserve permissions. Steps to reproduce: $ cd /tmp $ touch dos2unix.test $ ls -l dos2unix.test -rw-r--r-- 1 user users 0 2005-09-28 23:38 dos2unix.test $ dos2unix dos2unix.test $ ls -l dos2unix.test -rw------- 1 user users 0 2005-09-28 23:39 dos2unix.test $ touch mac2unix.test $ ls -l mac2unix.test -rw-r--r-- 1 user users 0 2005-09-28 23:40 mac2unix.test $ mac2unix mac2unix.test $ ls -l mac2unix.test -rw------- 1 user users 0 2005-09-28 23:40 mac2unix.test $ touch unix2dos.test $ ls -l unix2dos.test -rw-r--r-- 1 user users 0 2005-09-28 23:41 unix2dos.test $ unix2dos unix2dos.test $ ls -l unix2dos.test -rw------- 1 user users 0 2005-09-28 23:42 unix2dos.test Fedora has a patch for it. There are also some other patches in their src.rpm, some of which might be useful. http://download.fedora.redhat.com/pub/fedora/linux/core/4/SRPMS/dos2unix-3.1-24.src.rpm http://download.fedora.redhat.com/pub/fedora/linux/core/4/SRPMS/unix2dos-2.2-26.src.rpm
Patches from Fedora applied.
Reopenening to use NEEDINFO
OK, patch was accepted for SP4.