OSDN Git Service

Make the sshd directory configurable
authorGreg Hartman <ghartman@google.com>
Wed, 28 Oct 2015 01:05:50 +0000 (18:05 -0700)
committerGreg Hartman <ghartman@google.com>
Wed, 28 Oct 2015 01:05:50 +0000 (18:05 -0700)
Change-Id: I01d674b9a2688f4a1d3e884c2f434bfaad06ac8b

config.h

index c7c9d6c..f3932ec 100644 (file)
--- a/config.h
+++ b/config.h
 /* type to use in place of socklen_t if not defined */
 /* #undef socklen_t */
 
+#ifndef SSHDIR
 #define SSHDIR "/data/ssh"
+#endif
 
-#define _PATH_PRIVSEP_CHROOT_DIR "/data/ssh/empty"
+#define _PATH_PRIVSEP_CHROOT_DIR SSHDIR "/empty"
 
 #define _PATH_SSH_PROGRAM "/system/bin/sftp"