The following code snippet compiles find but when run it just hangs forever:
$ cat x.c #include <stdio.h> #include <unistd.h> #include <crypt.h> int main() { printf("Running test\n"); char *encrypted = crypt("blablabla","ab"); if(!encrypted || strcmp(encrypted,"ab.h7fshjf89f")) { printf("Fail\n"); } else { printf("OK\n"); } } $ gcc -o xout x.c -lcrypt $ ./xout Running test <here the program just hangs and needs to be killed with ^C> The same code runs fine on my desktop. Any suggestions what could be my problem? -- Dan Johansson, <http://www.dmj.nu> *************************************************** This message is printed on 100% recycled electrons! ***************************************************
smime.p7s
Description: S/MIME Cryptographic Signature