[scponly] subversion support

Dimitri Papadopoulos-Orfanos papadopo at shfj.cea.fr
Thu Apr 7 09:22:15 EDT 2005


> Worse, when I configure with --disable-sftp config.h still defines 
> ENABLE_SFTP (this happens with the current CVS version):

I work around this by undef'ining ENABLE_SFTP manually in config.h. Then 
I get compilation errors:

scponly.c:82: error: `PROG_SFTP_SERVER' undeclared here (not in a function)
scponly.c:82: error: initializer element is not constant
scponly.c:82: error: (near initialization for `dangerous_args[0].name')

Here is a patch:
--- scponly.c-	2005-03-18 09:40:44.000000000 +0100
+++ scponly.c	2005-04-07 15:21:36.398953697 +0200
@@ -79,7 +79,9 @@
  #ifdef ENABLE_SCP2
  	{ PROG_SCP, "-S" },
  #endif
+#ifdef ENABLE_SFTP
  	{ PROG_SFTP_SERVER, "-S" },
+#endif
  #ifdef UNISON_COMPAT
  	{ PROG_UNISON, "-rshcmd" },
  	{ PROG_UNISON, "-sshcmd" },

Dimitri Papadopoulos



More information about the scponly mailing list