Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Re: scponly for chrooted sftp server in cygwin Date: Thu, 10 Feb 2005 15:16:57 +0000 (UTC) Lines: 44 Message-ID: References: <42122CD7 AT webmail DOT ualberta DOT ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 // 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/