SCP file corruptions

Nicolas.Williams at Nicolas.Williams at
Tue May 7 03:20:32 EST 2002

if /somedir/fileA on hostA == /path/to/fileB on hostB because of NFS/AFS/DFS/whatever
	"hostA/somedir/: scp fileA hostB:/path/to/fileB" will corrupt the file


> -----Original Message-----
> From: Matt Studley [mailto:mjs at]
> Sent: Monday, May 06, 2002 1:14 PM
> To: GATHMAN,DON (HP-Boise,ex1)
> Cc: 'openssh-unix-dev at'
> Subject: Re: SCP file corruptions
> What options did you use with scp and what was the exact 
> error message?
> Generally, at least in my experience, scp will not copy over 
> a file when
> the 'source' and 'destination' are identical when doing a local copy:
> $ scp test test
> cp: test and test are identical
> when doing a remote copy, you will overwrite the remote file 
> but that is
> a different situation and should not corrupt the file.
> Matt Studley
> American Mathematical Society
> UNIX Sys Admin        		  "Quantum Mechanics -
> mjs at			  	The dreams that stuff 
> is made of"
> On Mon, 6 May 2002, GATHMAN,DON (HP-Boise,ex1) wrote:
> > Hi,
> >
> > I apparently was asleep at the wheel using scp, and 
> accidentally copied a
> > file onto itself.  Scp generated an Input/Output error and 
> did not perform
> > the copy.  However, now the file is corrupt.  Is this a 
> but? Is there anyway
> > to fix the file I messed up?
> >
> > Thanks,
> > Don Gathman
> > 208.396.6675
> > _______________________________________________
> > openssh-unix-dev at mailing list
> >
> >
> _______________________________________________
> openssh-unix-dev at mailing list

Visit our website at

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

More information about the openssh-unix-dev mailing list