mirror of
https://abf.rosa.ru/djam/glibc.git
synced 2025-02-24 07:22:47 +00:00
25 lines
539 B
Diff
25 lines
539 B
Diff
![]() |
--- glibc-2.16.0/crypt/wrapper.c.orig 2012-07-03 18:32:29.000000000 +0400
|
||
|
+++ glibc-2.16.0/crypt/wrapper.c 2012-07-03 18:42:56.935595814 +0400
|
||
|
@@ -326,6 +326,21 @@
|
||
|
weak_alias(__crypt_gensalt, crypt_gensalt)
|
||
|
weak_alias(crypt, fcrypt)
|
||
|
#endif
|
||
|
+/*
|
||
|
+ * To make fcrypt users happy.
|
||
|
+ * They don't need to call init_des.
|
||
|
+ */
|
||
|
+#ifdef _LIBC
|
||
|
+weak_alias (crypt, fcrypt)
|
||
|
+#else
|
||
|
+char *
|
||
|
+__fcrypt (key, salt)
|
||
|
+ const char *key;
|
||
|
+ const char *salt;
|
||
|
+{
|
||
|
+ return crypt (key, salt);
|
||
|
+}
|
||
|
+#endif
|
||
|
|
||
|
#ifdef TEST
|
||
|
static const char *tests[][3] = {
|