Mark reeder(deleted)
06/30/2010 3:31 PM
post58253
|
Did you try using " -p, --preserve preserve file
attributes if possible" flag?
Thanks
Mark
__________________________________________________
Mark Reeder
Harris/RF Communications
1680 University Avenue
Rochester, N.Y. 14610
Tel: (585)242-3455
Email: mreede01@harris.com
-----Original Message-----
From: Mario Charest [mailto:community-noreply@qnx.com]
Sent: Wednesday, June 30, 2010 2:54 PM
To: general-ide
Subject: cp and permission
I'm using Windows7 64 bit with IDE 6.4.1 (also with 4.7 with same
result). We have projects with custom makefile that uses the cp command
( $(QNX_HOST)/usr/bin/cp ). If the 6.4.1 tools are used all is fine,
but if the 6.3.2 tools are used the destination file ends up having no
permission (for all users) and becomes unreadable and unwritetable.
_______________________________________________
General
http://community.qnx.com/sf/go/post58244
|
|
|
Doug Fowley(deleted)
07/08/2010 6:08 PM
post59025
|
I had a similar problem and used "icacls ... /reset" to fix. I determined that the "cp" command was not preserving the
copied file's access control list (ACL). You can use the "icacls" to display and compare the ACLs of the source and
destination file. The solution I settled on is to "icacls dest-file /reset" after the "cp" command. This resets the
file's ACL to the default permissions, which includes read / write in my setup.
FWIW, I think it's a problem with QNX630's CYGWIN distro running on Windows 7, therefore not a problem on subsequent QNX
versions that drop CYGWIN.
Hope this helps.
|
|
|