Welcome to the Builder Academy

Question This was REALLY annoying!!

More
02 May 2015 07:38 #5287 by Kyle
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

Please Log in or Create an account to join the conversation.

More
02 May 2015 07:57 #5288 by Kyle
Replied by Kyle on topic This was REALLY annoying!!
Note that I still do not know why the MUD is crashing whenever crypt() is called. I shall have to disable it for now. If anyone knows please share! :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.156 seconds