ports/sysutils/fusefs-curlftpfs/files/patch-path__utils.h
Rodrigo Osorio 096cc027d4 sysutils/fusefs-curlftpfs: Patch to escape un-encoded URL
Add patch files from Gentoo[1] to escape un-encoded URLs passed
to libcurl causing infinite wait as reported in this issue[2].

CurlFTPFS project seems unmaintained for the last 4 years,
so we apply the fixes in the port itself just like ofther
projects does.

[1] https://gitweb.gentoo.org/repo/gentoo.git/plain/net-fs/curlftpfs/files/curlftpfs-0.9.2-fix-escaping.patch
[2] https://sourceforge.net/p/curlftpfs/bugs/65/

PR:		260371
Obtained from:	Gentoo Repo (https://gitweb.gentoo.org/repo/gentoo.git/tree/net-fs/curlftpfs/files/curlftpfs-0.9.2-fix-escaping.patch)
2021-12-30 23:34:55 +01:00

14 lines
414 B
C

--- path_utils.h.orig 2007-11-20 19:27:58 UTC
+++ path_utils.h
@@ -6,4 +6,11 @@ char* get_full_path(const char* path);
char* get_fulldir_path(const char* path);
char* get_dir_path(const char* path);
+/*
+ * Transforms UNIX path to RFC3986 encoded path
+ * (CURLOPT_URL accepts only such paths)
+ */
+char* path_to_uri(const char* path);
+void free_uri(char* path);
+
#endif /* __CURLFTPFS_PATH_UTILS_H__ */