Author: arekm                        Date: Thu Nov 22 17:16:36 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- --install-dist . breaks horribly (overwrites current / system that . one); 
prevent that by getting cwd

---- Files affected:
SOURCES:
   poldek-dir-dot.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/poldek-dir-dot.patch
diff -u /dev/null SOURCES/poldek-dir-dot.patch:1.1
--- /dev/null   Thu Nov 22 18:16:36 2007
+++ SOURCES/poldek-dir-dot.patch        Thu Nov 22 18:16:31 2007
@@ -0,0 +1,13 @@
+diff -urN poldek-0.21-cvs20070703.00.org/misc.c 
poldek-0.21-cvs20070703.00/misc.c
+--- poldek-0.21-cvs20070703.00.org/misc.c      2007-07-02 20:30:48.000000000 
+0200
++++ poldek-0.21-cvs20070703.00/misc.c  2007-11-22 18:09:26.899099602 +0100
+@@ -526,6 +526,9 @@
+ {
+     if (strstr(path, "./") == NULL)
+         return NULL;
++
++    if (strncmp(path, ".", 1) == 0)
++      return get_current_dir_name();
+     
+ #ifdef HAVE_CANONICALIZE_FILE_NAME /* have safe GNU ext? */
+     return realpath(path, NULL);
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to