Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: cygwin coreutils-5.3.0-4 cp change read-only flag Date: Wed, 13 Apr 2005 12:05:54 +0200 Message-ID: <3454C59CCFC9D54F8270998E355E1FA05BB3E3@tlsm384a.ww011.siemens.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Gobance Stephane" To: X-OriginalArrivalTime: 13 Apr 2005 10:06:31.0888 (UTC) FILETIME=[77866D00:01C54010] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j3DA9gaA024887 Hi, I have just installed the last coreutils package (at this day 5.3.0-4) and it seems that the "cp" command does not work in the same way as before (I do not remember the version I was using before). Actually, I try to copy a temporary JAR file (source), that I have just created with various Java API, to a library directory (destination). The source file has not the (Windows) read-only flag set but the destination has this flag set ! I have tried to use the command "cp --preserve=all" but it does not work better. I have also noticed something very strange: 1) I made a copy of the source file (call it source.jar) with a different name (call it source2.jar) in the source directory with Windows Explorer. 2) I have launched the command "cp source2.jar dest2.jar" from cygwin console and now it works ! The file dest2.jar has not its read-only flag set ! First of all, I have thought for a while that my source JAR had specific file permissions (for another user for instance) and that when I used Windows Explorer, the file copied had new file permissions (for my own user). Then, it could have explained why the cp command has worked in this way and modified the read-only flag... Here is the directory listing after launching the commands: -r-xr-xr-x 1 uidd0555 mkgroup-l-d 8008 Apr 13 11:59 dest.jar -rwxr-xr-x 1 uidd0555 mkgroup-l-d 8008 Apr 13 11:59 dest2.jar -r-xr-xr-x+ 1 uidd0555 mkgroup-l-d 8008 Apr 13 11:35 source.jar -rwxr-xr-x 1 Administrators ???????? 8008 Apr 13 11:35 source2.jar uidd0555 is my own user login. Any idea ??? I have never changed or managed the user/group DB so I do not understand why it does not work anymore... What is also surprising is why the file copied with Windows Explorer (source2.jar) has now a new owner and group... Regards Steph -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/