Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37849678
en ru br
ALT Linux repositórios
S:1.3.5-alt1.1.qa2
5.0: 1.3.5-alt1.1
4.1: 1.3.5-alt1
4.0: 1.3.5-alt1
3.0: 1.3.3-alt1

Group :: Desenvolvimento/Outros
RPM: tla

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: tla-1.3.5-neon-327111.patch
Download


diff -urNp tla-1.3.5.orig/src/tla/libarch/pfs-dav.c tla-1.3.5/src/tla/libarch/pfs-dav.c
--- tla-1.3.5.orig/src/tla/libarch/pfs-dav.c	2007-12-13 22:51:47.000000000 +0530
+++ tla-1.3.5/src/tla/libarch/pfs-dav.c	2007-12-13 22:54:36.000000000 +0530
@@ -128,7 +128,7 @@ static t_uchar * abs_path (const t_uchar
                            const t_uchar * path);
 static t_uchar * dirfold (t_uchar *dir);
 static void results (void * userdata,
-                     const char * uri,
+                     const ne_uri * uri,
                      const ne_prop_result_set * set);
 
 
@@ -988,22 +988,23 @@ dirfold (t_uchar *dir)
 
 static void
 results (void * userdata,
-         const char * uri,
+         const ne_uri * uri,
          const ne_prop_result_set * set)
 {
   int n;
-  char * file, * tmp;
+  char * file, * href, * tmp;
   struct ls_data * data = userdata;
 
-  if (str_cmp (data->uri, uri))
+  href = ne_uri_unparse (uri);
+  if (str_cmp (data->uri, href))
     {
-      if (1 == (n = str_length (uri)))
+      if (1 == (n = str_length (href)))
         return;
 
-      if (uri[n - 1] == '/')
+      if (href[n - 1] == '/')
         n--;
 
-      file = str_chr_rindex_n (uri, n, '/') + 1;
+      file = str_chr_rindex_n (href, n, '/') + 1;
 
       n = str_length (file);
       if (file[n - 1] == '/')
@@ -1015,6 +1016,7 @@ results (void * userdata,
 
       data->files = str_realloc_cat_many (0, data->files, tmp, "\r\n", str_end);
       free (tmp);
+      free (href);
     }
 }
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009