diff options
author | Robert Clausecker <fuz@FreeBSD.org> | 2024-09-27 12:48:46 +0200 |
---|---|---|
committer | Robert Clausecker <fuz@FreeBSD.org> | 2024-11-06 16:17:35 +0100 |
commit | 6e2da9672f79f44048d597f0f61e4646cdeade9d (patch) | |
tree | c92e4b3158e3419e8cec38e00227d08dcdaab3e9 /filesystems/httpfs/files/patch-httpfs2.c | |
parent | math/sdpa: speed up build (diff) |
filesystems: add new category for file systems and related utilities
The filesystems category houses file systems and file system utilities.
It is added mainly to turn the sysutils/fusefs-* pseudo-category into
a proper one, but is also useful for the sundry of other file systems
related ports found in the tree.
Ports that seem like they belong there are moved to the new category.
Two ports, sysutils/fusefs-funionfs and sysutils/fusefs-fusepak are
not moved as they currently don't fetch and don't have TIMESTAMP set
in their distinfo, but that is required to be able to push a rename
of the port by the pre-receive hook.
Approved by: portmgr (rene)
Reviewed by: mat
Pull Request: https://github.com/freebsd/freebsd-ports/pull/302
PR: 281988
Diffstat (limited to 'filesystems/httpfs/files/patch-httpfs2.c')
-rw-r--r-- | filesystems/httpfs/files/patch-httpfs2.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/filesystems/httpfs/files/patch-httpfs2.c b/filesystems/httpfs/files/patch-httpfs2.c new file mode 100644 index 000000000000..c18b96efd4a4 --- /dev/null +++ b/filesystems/httpfs/files/patch-httpfs2.c @@ -0,0 +1,53 @@ +--- httpfs2.c.orig 2012-09-03 14:58:02 UTC ++++ httpfs2.c +@@ -35,7 +35,7 @@ + #include <assert.h> + #include <ctype.h> + #include <sys/stat.h> +-#include <sys/dir.h> ++#include <dirent.h> + #include <sys/types.h> + #include <sys/time.h> + #include <sys/socket.h> +@@ -188,7 +188,7 @@ static char * b64_encode(unsigned const char* ptr, lon + + static int httpfs_stat(fuse_ino_t ino, struct stat *stbuf) + { +- stbuf->st_ino = ino; ++ stbuf->st_ino = (uint32_t)ino; + switch (ino) { + case 1: + stbuf->st_mode = S_IFDIR | 0755; +@@ -257,7 +257,7 @@ static void dirbuf_add(fuse_req_t req, struct dirbuf * + b->size += fuse_add_direntry(req, NULL, 0, name, NULL, 0); + b->p = (char *) realloc(b->p, b->size); + memset(&stbuf, 0, sizeof(stbuf)); +- stbuf.st_ino = ino; ++ stbuf.st_ino = (uint32_t)ino; + fuse_add_direntry(req, b->p + oldsize, b->size - oldsize, name, &stbuf, + (off_t) b->size); + } +@@ -667,11 +667,12 @@ static char * url_encode(char * path) { + + static int init_url(struct_url* url) + { +- memset(url, 0, sizeof(url)); ++ memset(url, 0, sizeof(*url)); + url->sock_type = SOCK_CLOSED; + url->timeout = TIMEOUT; + #ifdef USE_SSL +- url->cafile = CERT_STORE; ++ if ((url->cafile = getenv("CERT_STORE")) == NULL) ++ url->cafile = CERT_STORE; + #endif + return 0; + } +@@ -911,7 +912,7 @@ int main(int argc, char *argv[]) + return 3; + } + #ifdef USE_SSL +- else { ++ else if(main_url.ss != NULL) { + print_ssl_info(main_url.ss); + } + #endif |