SCO patch attempt.

Tim Rice tim at multitalents.net
Fri Jan 12 17:43:24 EST 2001


On Thu, 11 Jan 2001 mouring at etoh.eviladmin.org wrote:

> 
> Since I don't have a SCO access I need you to try this, Tim.
> 
> 1. Added utimes() support via utime() interface.

A good start. (More below)

> 2. First wack at 32bit sftp-server.  
> 
> Markus,
> 
> Can you skim the patch?  The only aspect that I think is wrong (looking
> back) is the use of SSH2_OP_UNSUPPORTED in read/write.  There should be

That might explain
...
cc -g -I/usr/local/include -I/usr/local/ssl/include -I. -Isrc -DETCDIR=\"/usr/lo
cal/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/loca
l/libexec/ssh-askpass\" -DHAVE_CONFIG_H -c src/sftp-server.c
UX:acomp: ERROR: "src/sftp-server.c", line 196: undefined struct/union member: h
igh_low
UX:acomp: ERROR: "src/sftp-server.c", line 535: undefined symbol: SSH2_OP_UNSUPP
ORTED
UX:acomp: ERROR: "src/sftp-server.c", line 587: undefined symbol: SSH2_OP_UNSUPP
ORTED
gmake: *** [sftp-server.o] Error 1
...
BTW. This was on a machine that has utimes() and long long.

> SSH2_FX_TRUNCATE in the specs to account for such a case, but maybe I
> should be using SSH2_FX_EOF.  Or maybe in process_open() should return
> SSH2_OP_UNSUPPORTED  if a->high_size > 0.. But.. There is nothing in the
> sftp specs to handle such a case.  So I suspect some odd behavior
> eitherway.
> 
> - Ben
> 
> diff -ur openssh/bsd-misc.h ossh/bsd-misc.h
> --- openssh/bsd-misc.h	Thu Nov 16 21:47:20 2000
> +++ ossh/bsd-misc.h	Thu Jan 11 21:34:12 2001
> @@ -54,4 +54,15 @@
>  const char *strerror(int e);
>  #endif 
>  
> +
> +#ifndef HAVE_UTIMES
> +struct timeval {
> +	long tv_sec;
> +	long tv_usec;

OK, change #ifndef HAVE_UTIMES to
#if !defined(HAVE_UTIMES)  &&  !defined(HAVE_UTIME)

In configure.in,
add utime.h to AC_CHECK_HEADERS
add utime to AC_CHECK_FUNCS

In includes.h add
	#ifdef HAVE_UTIME_H
	# include <utime.h>
	#endif

When I get more time i'll look into the sftp-server problem.
> 
> 

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net








More information about the openssh-unix-dev mailing list