[hjl@gnu-d tmp]$ touch foo [hjl@gnu-d tmp]$ chmod +x foo [hjl@gnu-d tmp]$ ls -l foo -rwx--x--x 1 hjl hjl 0 May 21 08:16 foo [hjl@gnu-d tmp]$ unix2dos foo unix2dos: converting file foo to DOS format ... [hjl@gnu-d tmp]$ ls -l foo -rw------- 1 hjl hjl 0 May 21 08:17 foo
Created attachment 91861 [details] A patch to preserve mode
*** Bug 132146 has been marked as a duplicate of this bug. ***
Tried to send this upstream but it bounced. Built as 2.2-23.
Tim: Yeah, neither dos2unix and unix2dos seem to have an upstream maintainer for several years now. I guess the best thing to do would be to gather all the patches in our bugzilla together, gather debian/mandrake/suse/etc. packages, and put up a new project on sourceforge or somewhere to pull all fixes into one single place that everyone can then use. Then each distribution package maintainer can have write access to the sf repo and things get fixed in one place. ;)
Seems to work for me.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2005-195.html