wrong error message

Harald Koenig H.Koenig at science-computing.de
Tue Aug 4 03:51:13 EST 2009


On Aug 03, Scott Neugroschl wrote:

> I suspect that the host is generating EISDIR (cygwin generates that for
> a local copy like that).
> As such, I wouldn't think it's wise for sshd to put special handling in
> there for this case.

indeed, you're right:

	harald > cp /etc/passwd foo/
	cp: cannot create regular file `foo/': Is a directory

	harald > strace -e open cp /etc/passwd foo/
	[...]
	open("/etc/passwd", O_RDONLY)           = 3
	open("foo/", O_WRONLY|O_CREAT|O_EXCL, 0644) = -1 EISDIR (Is a directory)
	cp: cannot create regular file `foo/': Is a directory

:-(


Harald Koenig
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig                                          \/\/\/\/\/\/\/\/\/
science+computing ag                                    //  /     \\  \
koenig at science-computing.de                            ^^^^^       ^^^^^
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, 
Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 




More information about the openssh-unix-dev mailing list