summaryrefslogtreecommitdiff
path: root/libcrypt/crypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrypt/crypt.c')
-rw-r--r--libcrypt/crypt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcrypt/crypt.c b/libcrypt/crypt.c
index 8399205ca..cfcd11f91 100644
--- a/libcrypt/crypt.c
+++ b/libcrypt/crypt.c
@@ -6,6 +6,7 @@
#include <unistd.h>
#include <crypt.h>
+#include <errno.h>
#include "libcrypt.h"
char *crypt(const char *key, const char *salt)
@@ -26,7 +27,7 @@ char *crypt(const char *key, const char *salt)
return __sha512_crypt(ukey, usalt);
#endif
}
- /* __set_errno(EINVAL);*/ /* ENOSYS might be misleading */
+ __set_errno(EINVAL);
return NULL;
}
return __des_crypt(ukey, usalt);