[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cp -p
From: |
Ekanayake, Sumith |
Subject: |
cp -p |
Date: |
Fri, 16 Mar 2007 09:00:14 -0400 |
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
address@hidden ~]$ touch a
address@hidden ~]$ cp a b
address@hidden ~]$ ls -ld b
-rw-r--r-- 1 sekanaya cadd 0 Mar 16 2007 b
When you use with -p option
address@hidden ~]$ touch c
address@hidden ~]$ cp -p c d
cp: preserving permissions for `d': Invalid argument
eventhough I get this above error message, it copies the file.
address@hidden ~]$ 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
address@hidden
(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.
- cp -p,
Ekanayake, Sumith <=