fix svn patch breakage in glib
[openwrt.git] / obsolete-buildroot / sources / openwrt / patches / ppp / no_crypt_hack
1 diff -ruN ppp.orig/pppd/auth.c ppp/pppd/auth.c
2 --- ppp.orig/pppd/auth.c 2003-06-12 02:01:21.000000000 +0200
3 +++ ppp/pppd/auth.c 2003-12-02 14:48:40.000000000 +0100
4 @@ -1292,8 +1292,10 @@
5 }
6 if (secret[0] != 0 && !login_secret) {
7 /* password given in pap-secrets - must match */
8 +#ifndef NO_CRYPT_HACK
9 if ((cryptpap || strcmp(passwd, secret) != 0)
10 && strcmp(crypt(passwd, secret), secret) != 0)
11 +#endif
12 ret = UPAP_AUTHNAK;
13 }
14 }
15 @@ -1495,8 +1497,10 @@
16 /*
17 * If no passwd, don't let them login.
18 */
19 +#ifndef NO_CRYPT_HACK
20 if (pw->pw_passwd == NULL || strlen(pw->pw_passwd) < 2
21 || strcmp(crypt(passwd, pw->pw_passwd), pw->pw_passwd) != 0)
22 +#endif
23 return (UPAP_AUTHNAK);
24
25 #endif /* #ifdef USE_PAM */
26 diff -ruN ppp.orig/pppd/Makefile.linux ppp/pppd/Makefile.linux
27 --- ppp.orig/pppd/Makefile.linux 2003-11-27 23:00:22.000000000 +0100
28 +++ ppp/pppd/Makefile.linux 2003-12-02 14:47:53.000000000 +0100
29 @@ -116,12 +116,16 @@
30 #LIBS += -lshadow $(LIBS)
31 endif
32
33 +ifdef NO_CRYPT_HACK
34 +CFLAGS += -DNO_CRYPT_HACK
35 +else
36 ifneq ($(wildcard /usr/include/crypt.h),)
37 CFLAGS += -DHAVE_CRYPT_H=1
38 endif
39 ifneq ($(wildcard /usr/lib/libcrypt.*),)
40 LIBS += -lcrypt
41 endif
42 +endif
43
44 ifdef NEEDDES
45 ifndef USE_CRYPT
This page took 0.044433 seconds and 5 git commands to generate.