This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: scponly for chrooted sftp server in cygwin


>
>

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]