]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- --install-dist . breaks horribly (overwrites current / system that . one); prevent...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 22 Nov 2007 17:16:31 +0000 (17:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poldek-dir-dot.patch -> 1.1

poldek-dir-dot.patch [new file with mode: 0644]

diff --git a/poldek-dir-dot.patch b/poldek-dir-dot.patch
new file mode 100644 (file)
index 0000000..20e2e34
--- /dev/null
@@ -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);
This page took 0.045781 seconds and 4 git commands to generate.