]>
Commit | Line | Data |
---|---|---|
e397b730 AM |
1 | diff -urN poldek-0.21-cvs20070703.00.org/misc.c poldek-0.21-cvs20070703.00/misc.c |
2 | --- poldek-0.21-cvs20070703.00.org/misc.c 2007-07-02 20:30:48.000000000 +0200 | |
3 | +++ poldek-0.21-cvs20070703.00/misc.c 2007-11-22 18:09:26.899099602 +0100 | |
4 | @@ -526,6 +526,9 @@ | |
5 | { | |
6 | if (strstr(path, "./") == NULL) | |
7 | return NULL; | |
8 | + | |
9 | + if (strncmp(path, ".", 1) == 0) | |
10 | + return get_current_dir_name(); | |
11 | ||
12 | #ifdef HAVE_CANONICALIZE_FILE_NAME /* have safe GNU ext? */ | |
13 | return realpath(path, NULL); |