delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/10/10:24:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Christian Weinberger <christian DOT weinberger AT directbox DOT com>
Subject: Re: scponly for chrooted sftp server in cygwin
Date: Thu, 10 Feb 2005 15:16:57 +0000 (UTC)
Lines: 44
Message-ID: <loom.20050210T161019-811@post.gmane.org>
References: <42122CD7 AT webmail DOT ualberta DOT ca> <loom DOT 20050210T131408-32 AT post DOT gmane DOT org>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: main.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 62.180.31.25 (Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.5) Gecko/20041122 Firefox/1.0)
X-Gmane-MailScanner: Found to be clean
X-Gmane-MailScanner: Found to be clean
X-MailScanner-From: goc-cygwin AT m DOT gmane DOT org
X-MailScanner-To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

>
>

Now having access to my machine, I can tell you the following:

All applies to scponly 3.11

/usr/src/scponly-3.11:{509}:$ diff scponly.c scponly.c.bak
331c331
<       char bad_winscp3str[] = "test -x /usr/sbin/sftp-server && exec
/usr/sbin/sftp-server test -x /usr/local/lib/sftp-server && exec
/usr/local/lib/sftp-server exec sftp-server";
---
>       char bad_winscp3str[] = "test -x /usr/lib/sftp-server && exec
/usr/lib/sftp-server test -x /usr/local/lib/sftp-server && exec
/usr/local/lib/sftp-server exec sftp-server";

/usr/src/scponly-3.11:{510}:$ diff helper.c helper.c.bak
27a28,29
> #define basename g_basename
>

additionally comment this:
/usr/src/scponly-3.11:{513}:$ grep "libgen.h" *.c
helper.c:// #include <libgen.h> // basename


/usr/src/scponly-3.11:{512}:$ diff config.h config.h.bak
23c23
< #define PROG_SFTP_SERVER "/bin/sftp-server"
---
> #define PROG_SFTP_SERVER "/usr/sbin/sftp-server"

and I really had to specify liberty.a manually in the Makefile:

scponly: scponly.o helper.o
        ${CC} ${CFLAGS} ${DEFS} -o $@ scponly.o helper.o /usr/lib/libiberty.a


Now that is not structured very well, but I hope it will help you to make you
way through.

Regards,
Christian


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019