diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-09-18 08:48:07 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2014-09-18 08:48:22 +0000 |
commit | 080e012e1cc56363171c2544a7591918c7be26ad (patch) | |
tree | 4c43095ff118eb7f15f2026eea02e5d8c32257a6 /main/lsyncd/fix-realpath.patch | |
parent | e5e8b6436aa316124c7ba1f6146cd67119afcf71 (diff) | |
download | aports-080e012e1cc56363171c2544a7591918c7be26ad.tar.bz2 aports-080e012e1cc56363171c2544a7591918c7be26ad.tar.xz |
main/lsyncd: upgrade to 2.1.5
Diffstat (limited to 'main/lsyncd/fix-realpath.patch')
-rw-r--r-- | main/lsyncd/fix-realpath.patch | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/main/lsyncd/fix-realpath.patch b/main/lsyncd/fix-realpath.patch index 66132f26e4..646a582f8c 100644 --- a/main/lsyncd/fix-realpath.patch +++ b/main/lsyncd/fix-realpath.patch @@ -1,20 +1,22 @@ ---- lsyncd-2.0.7.orig/lsyncd.c -+++ lsyncd-2.0.7/lsyncd.c -@@ -166,17 +166,7 @@ - char * - get_realpath(const char * rpath) { +--- a/lsyncd.c ++++ b/lsyncd.c +@@ -171,19 +171,7 @@ + get_realpath( const char * rpath ) + { // uses c-library to get the absolute path -#ifdef __GLIBC__ - // in case of GLIBC the task is easy. - return realpath(rpath, NULL); + return realpath( rpath, NULL ); -#else -# warning having to use old style realpath() -- // otherwise less so and requires PATH_MAX limit. -- char buf[PATH_MAX]; -- char *asw = realpath(rpath, buf); -- if (!asw) return NULL; -- return s_strdup(asw); +- // otherwise less so and requires PATH_MAX limit +- char buf[ PATH_MAX] ; +- char *asw = realpath( rpath, buf ); +- if( !asw ) +- { return NULL; } +- +- return s_strdup( asw ); -#endif } - /***************************************************************************** + |