]> git.pld-linux.org Git - packages/cvsnt.git/blob - cvsnt-crypt.patch
- one libxml2-devel BR is enough
[packages/cvsnt.git] / cvsnt-crypt.patch
1 --- cvsapi/lib/md5crypt.c.org   2008-06-15 02:55:11.067778449 +0200
2 +++ cvsapi/lib/md5crypt.c       2008-06-15 02:57:43.657094377 +0200
3 @@ -19,6 +19,7 @@
4  #include "api_system.h"
5  
6  #include <string.h>
7 +#include <unistd.h>
8  #include "md5.h"
9  #include "md5crypt.h"
10  
11 @@ -157,7 +158,10 @@
12  {
13         const char *test_pw;
14  
15 -       if(is_md5_salt(crypt_pw))
16 +       test_pw = crypt(text, crypt_pw);
17 +       if (strcmp(test_pw, crypt_pw) == 0)
18 +               return 0;
19 +       else if(is_md5_salt(crypt_pw))
20                 test_pw = md5_crypt(text,crypt_pw+strlen(magic));
21         else
22                 test_pw = ufc_crypt(text,crypt_pw);
23 --- cvsapi/Makefile.am~ 2008-04-23 09:35:15.000000000 +0200
24 +++ cvsapi/Makefile.am  2008-06-15 03:00:51.707076565 +0200
25 @@ -122,6 +122,7 @@
26          $(zlib_lib) \
27          $(pcre_lib) \
28          $(mdns_client_lib) \
29 -        $(LIBLTDL) 
30 +        $(LIBLTDL) \
31 +       -lcrypt
32  
33  lib_LTLIBRARIES = libcvsapi.la
34
This page took 0.065348 seconds and 3 git commands to generate.