diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2013-02-18 04:43:58 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2013-02-18 04:43:58 +0000 |
commit | df2e80c8b472e780b4cc9bfda947b396898cd81d (patch) | |
tree | 6c4c24197c5ec540d02ef640e97d288607c97e01 /net/afpfs-ng/files/patch-fuse__client.c | |
parent | Convert to OptionsNG (diff) |
afpfs-ng is an Apple Filing Protocol client that will allow BSD,
Linux and Mac OS X systems to access files exported from a
Mac OS system with AFP over TCP.
WWW: http://sourceforge.net/projects/afpfs-ng/
PR: ports/172780
Submitted by: Manuel Creach <manuel.creach@icloud.com>
Diffstat (limited to '')
-rw-r--r-- | net/afpfs-ng/files/patch-fuse__client.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net/afpfs-ng/files/patch-fuse__client.c b/net/afpfs-ng/files/patch-fuse__client.c new file mode 100644 index 000000000000..1ebe95fc9cfa --- /dev/null +++ b/net/afpfs-ng/files/patch-fuse__client.c @@ -0,0 +1,30 @@ +--- fuse/client.c.orig 2008-03-08 02:44:16.000000000 +0000 ++++ fuse/client.c 2012-10-14 13:11:44.000000000 +0000 +@@ -12,11 +12,11 @@ + #include <grp.h> + + #include "config.h" +-#include <afp.h> ++#include <afpfs-ng/afp.h> + #include "afp_server.h" +-#include "uams_def.h" +-#include "map_def.h" +-#include "libafpclient.h" ++#include "afpfs-ng/uams_def.h" ++#include "afpfs-ng/map_def.h" ++#include "afpfs-ng/libafpclient.h" + + #define default_uam "Cleartxt Passwrd" + +@@ -61,8 +61,9 @@ + snprintf(filename, PATH_MAX, + "/usr/local/bin/%s",AFPFSD_FILENAME); + if (access(filename,X_OK)) { +- snprintf(filename, "/usr/bin/%s", ++ snprintf(filename, sizeof(filename), "/usr/bin/%s", + AFPFSD_FILENAME); ++ filename[sizeof(filename) - 1] = 0; + if (access(filename,X_OK)) { + printf("Could not find server (%s)\n", + filename); +diff -Naur afpfs-ng-0.8.1.orig/fuse/commands.c afpfs-ng-0.8.1/fuse/commands.c |