commit 8a12c83e3ef45dc9b1bfb0933e742464699cb7ea parent 1a67e62e7eb8fe0032577d8bbaabaccc4322841c Author: Nikos Mavrogiannopoulos <nmav@gnutls.org> Date: Mon, 19 Jan 2015 21:39:25 +0100 ocserv: prevent ocpasswd from using sha2crypt That doesn't cope well with uclibc. https://bugs.busybox.net/show_bug.cgi?id=7808 Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org> Diffstat:
| A | net/ocserv/patches/001-ocpasswd-sha2crypt.patch | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/net/ocserv/patches/001-ocpasswd-sha2crypt.patch b/net/ocserv/patches/001-ocpasswd-sha2crypt.patch @@ -0,0 +1,12 @@ +diff -ur ocserv-0.8.9/src/ocpasswd.c ocserv-0.8.9.new/src/ocpasswd.c +--- ocserv-0.8.9/src/ocpasswd.c 2014-11-29 19:49:38.000000000 +0100 ++++ ocserv-0.8.9.new/src/ocpasswd.c 2015-01-19 23:21:14.959144113 +0100 +@@ -69,7 +69,7 @@ + exit(1); + } + +- strcpy(salt, "$5$"); ++ strcpy(salt, "$1$"); + p = salt + 3; + + for (i = 0; i < sizeof(_salt); i++) {