From 8a12c83e3ef45dc9b1bfb0933e742464699cb7ea Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 19 Jan 2015 21:39:25 +0100 Subject: [PATCH] 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 --- net/ocserv/patches/001-ocpasswd-sha2crypt.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net/ocserv/patches/001-ocpasswd-sha2crypt.patch diff --git a/net/ocserv/patches/001-ocpasswd-sha2crypt.patch b/net/ocserv/patches/001-ocpasswd-sha2crypt.patch new file mode 100644 index 000000000..272599c29 --- /dev/null +++ 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++) {