Bug 91332

Summary: unix2dos doesn't preserve mode
Product: [Retired] Red Hat Raw Hide Reporter: hjl
Component: unix2dosAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: dgunchev, sp, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-20 00:35:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 123268    
Attachments:
Description Flags
A patch to preserve mode none

Description hjl 2003-05-21 15:15:39 UTC
[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

Comment 1 hjl 2003-05-21 15:16:12 UTC
Created attachment 91861 [details]
A patch to preserve mode

Comment 2 Mike A. Harris 2004-09-26 09:05:37 UTC
*** Bug 132146 has been marked as a duplicate of this bug. ***

Comment 3 Tim Waugh 2004-10-11 13:25:07 UTC
Tried to send this upstream but it bounced.  Built as 2.2-23.

Comment 4 Mike A. Harris 2004-10-12 01:34:29 UTC
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.  ;)

Comment 5 Doncho Gunchev 2004-11-04 18:07:30 UTC
Seems to work for me.

Comment 6 Tim Powers 2005-05-20 00:35:34 UTC
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