So more issues with CRYPT on
Code:
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.1
DISTRIB_CODENAME=rebecca
DISTRIB_DESCRIPTION="Linux Mint 17.1 Rebecca"
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
cat: /etc/upstream-release: Is a directory
On this platform, no issues at compile time, but whenever crypt() is called the MUD crashes.
As a test, I went to conf.h and changed
Code:
/* Define if the system is capable of using crypt() to encrypt. */
-#define CIRCLE_CRYPT 1
+#define CIRCLE_CRYPT 0
Then we would just skip the crypt() call altogether right?
No. It still calls crypt() Why?? Arghhh.
This is really subtle....
In utils.h, the following change is needed.
Code:
/*
* NOCRYPT can be defined by an implementor manually in sysdep.h.
* CIRCLE_CRYPT is a variable that the 'configure' script
* automatically sets when it determines whether or not the system is
* capable of encrypting.
*/
-#if defined(NOCRYPT) || !defined(CIRCLE_CRYPT)
+#if defined(NOCRYPT) || !CIRCLE_CRYPT
#define CRYPT(a,b) (a)
#else
#define CRYPT(a,b) ((char *) crypt((a),(b)))
#endif