[arch-commits] Commit in thttpd/trunk (PKGBUILD thttpd-2.25b-getline.patch)

Ionut Biru ibiru at archlinux.org
Sun Apr 11 11:44:48 UTC 2010


    Date: Sunday, April 11, 2010 @ 07:44:48
  Author: ibiru
Revision: 77185

add missing patch

Added:
  thttpd/trunk/thttpd-2.25b-getline.patch
Modified:
  thttpd/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |    2 +-
 thttpd-2.25b-getline.patch |   21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-04-11 11:40:13 UTC (rev 77184)
+++ PKGBUILD	2010-04-11 11:44:48 UTC (rev 77185)
@@ -43,4 +43,4 @@
             '9cf9b42633a53be922acdceada79897081ab9b987f2d9c20ce090a354114ef28'
             '1f45e999622ff554820a627deb994357b61d11017db93bff65153e6725c1ca06'
             '2a2480c032320a319b387c929b9e5e4ae4dad248ec8abb3b3accac99462368ef'
-            '302d32bbaa96da6579547a5b132c4a64ad949a630c4ab46391531e80a132f559')
+            'ab054c6178c91213293e2ad5eacec4d76a43c2140cbd4e516480acba9146e1d5')

Added: thttpd-2.25b-getline.patch
===================================================================
--- thttpd-2.25b-getline.patch	                        (rev 0)
+++ thttpd-2.25b-getline.patch	2010-04-11 11:44:48 UTC (rev 77185)
@@ -0,0 +1,21 @@
+diff -Nur thttpd-2.25b.orig/extras/htpasswd.c thttpd-2.25b/extras/htpasswd.c
+--- thttpd-2.25b.orig/extras/htpasswd.c	2001-12-19 02:08:08.000000000 +0200
++++ thttpd-2.25b/extras/htpasswd.c	2010-04-11 14:43:31.037809054 +0300
+@@ -49,7 +49,7 @@
+     while((line[y++] = line[x++]));
+ }
+ 
+-static int getline(char *s, int n, FILE *f) {
++static int get_line(char *s, int n, FILE *f) {
+     register int i=0;
+ 
+     while(1) {
+@@ -189,7 +189,7 @@
+     strcpy(user,argv[2]);
+ 
+     found = 0;
+-    while(!(getline(line,MAX_STRING_LEN,f))) {
++    while(!(get_line(line,MAX_STRING_LEN,f))) {
+         if(found || (line[0] == '#') || (!line[0])) {
+             putline(tfp,line);
+             continue;




More information about the arch-commits mailing list