SCO patch attempt.

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Mon Jan 15 13:29:36 EST 2001


On Sun, 14 Jan 2001, Tim Rice wrote:

> On Fri, 12 Jan 2001 mouring at etoh.eviladmin.org wrote:
> 
> > On Thu, 11 Jan 2001, Tim Rice wrote:
> > 
> > > l/libexec/ssh-askpass\" -DHAVE_CONFIG_H -c src/bsd-arc4random.c
> > > UX:acomp: ERROR: "src/bsd-misc.h", line 59: (struct) tag redeclared: timeval
> > > UX:acomp: ERROR: "src/bsd-misc.h", line 64: invalid type combination
> > > gmake: *** [bsd-arc4random.o] Error 1
> > > ...
> > 
> > Ermm.. What other commands use 'timeval'?  If you have a valid
> > timeval.  Then one is going to have to test the existance of timeval like
> > they do other structures and set or not-set accordingly.
> 
> Yup, that's obvious after a good nights sleep. ;-)
> 
[..]
> 
> It would build on SCO Open Server 3 (aka 3.2v4.2) but there is no
> fchmod() in this platform.
> ...

That is an easy fix.  We follow suite with futimes().  

@@ -685,7 +736,11 @@
 		status = SSH2_FX_FAILURE;
 	} else {
 		if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) {
+#ifdef HAVE_FCHMOD
 			ret = fchmod(fd, a->perm & 0777);
+#else
+			ret = chmod(name, a->perm & 077);
+endif
 			if (ret == -1)
 				status = errno_to_portable(errno);
 		}


I'm going to split the utimes()/fchmod() patch from the rest of the
sftp-server stuff.  I'm not really happy with the current changes with
forcing sftp-server into 32bit mode.  (Assuming it even works.=)

- Ben






More information about the openssh-unix-dev mailing list