scp problem

ANDERSON RUSSELL D (ANDY) RXANDERS at srpnet.com
Wed Apr 14 06:38:08 EST 2004


RCSID("$OpenBSD: scp.c,v 1.113 2003/11/23 23:21:21 djm Exp $");
Part of the OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7c 30 Sep 2003 distribution

Could someone verify this case we found that causes a file to be missed during copying?

Here is the setup to replicate the problem:

On hosta /tmp:
	-rw-rw-r--   1 user01 group01       0 Apr 13 10:44 file0
	-rw-rw-r--   1 user01 group01       0 Apr 13 10:44 file1
	-rw-rw-r--   1 user01 group01       0 Apr 13 10:44 file2

On hostb /tmp:
	-rw-rw-r--   1 user02 group02       0 Apr 13 10:44 file0

	cd /tmp
	scp -p hosta:/tmp/file* .

	file0                                         100%    0     0.0KB/s   00:00
	./file0: set mode: Not owner
	./file0: set times: Not owner
	file2                                         100%    0     0.0KB/s   00:00

	The resulting files are:

	-rwxrwxr-x   1 user02   group02         0 Apr 13 13:30 file0
	-rw-rw-r--     1 user01   group02         0 Apr 13 10:44 file2

The question is why was "file01" not copied?

Thanks - Andy




More information about the openssh-unix-dev mailing list