From 3337c7067d6b8d9599e63919f5e1d0830cd8e696 Mon Sep 17 00:00:00 2001
From: Greg Hartman <ghartman@google.com>
Date: Tue, 27 Oct 2015 18:05:50 -0700
Subject: [PATCH] Make the sshd directory configurable

Change-Id: I01d674b9a2688f4a1d3e884c2f434bfaad06ac8b
---
 config.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/config.h b/config.h
index c7c9d6c..f3932ec 100644
--- a/config.h
+++ b/config.h
@@ -1594,8 +1594,10 @@
 /* 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"
-- 
GitLab