Hello,

We have a strange issue using "cp" command with -p option on Redhat
Linux 3 kernel 2.4.21-47.ELsmp. 
 I get the following error message...

When you use without an option, no problems
[EMAIL PROTECTED] ~]$ touch a
[EMAIL PROTECTED] ~]$ cp a b
[EMAIL PROTECTED] ~]$ ls -ld b
-rw-r--r--    1 sekanaya cadd            0 Mar 16  2007 b

When you use with -p option
[EMAIL PROTECTED] ~]$ touch c
[EMAIL PROTECTED] ~]$ cp -p c d
cp: preserving permissions for `d': Invalid argument

eventhough I get this above error message, it copies the file.
[EMAIL PROTECTED] ~]$ ls -ld d
-rw-r--r--    1 sekanaya cadd            0 Mar 16  2007 d

I do not get this error message Redhat 4.... Any idea ???

Thanks in advance.


Sumith

--
Sumith Ekanayake
Global Information Technology
[EMAIL PROTECTED]
(908)740-3952

*********************************************************************
This message and any attachments are solely for the
intended recipient. If you are not the intended recipient,
disclosure, copying, use or distribution of the information 
included in this message is prohibited -- Please 
immediately and permanently delete.
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to