From 23da1af0915a08a58e9d829fa4db6a6a6e8ff755 Mon Sep 17 00:00:00 2001 From: John Marino Date: Thu, 6 Nov 2014 10:13:06 +0000 Subject: Add new port net-mgmt/seafile PR: 193134 Submitted by: Jingfeng Yan Seafile is a next-generation open source cloud storage system with advanced support for file syncing, privacy protection and teamwork. Collections of files are called libraries, and each library can be synced separately. A library can be encrypted with a user chosen password. This password is not stored on the server, so even the server admin cannot view a file's contents. Seafile allows users to create groups with file syncing, wiki, and discussion to enable easy collaboration around documents within a team. --- net-mgmt/seafile/files/patch-lib_utils.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 net-mgmt/seafile/files/patch-lib_utils.c (limited to 'net-mgmt/seafile/files/patch-lib_utils.c') diff --git a/net-mgmt/seafile/files/patch-lib_utils.c b/net-mgmt/seafile/files/patch-lib_utils.c new file mode 100644 index 000000000000..c1c3c4f645d3 --- /dev/null +++ b/net-mgmt/seafile/files/patch-lib_utils.c @@ -0,0 +1,23 @@ +--- lib/utils.c.orig 2014-06-05 02:25:50.000000000 -0400 ++++ lib/utils.c 2014-07-30 22:56:37.000000000 -0400 +@@ -1756,14 +1756,19 @@ + + #endif /* ifdef WIN32 */ + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) + /* read the link of /proc/123/exe and compare with `process_name' */ + static int + find_process_in_dirent(struct dirent *dir, const char *process_name) + { + char path[512]; + /* fisrst construct a path like /proc/123/exe */ ++#ifdef __linux__ + if (sprintf (path, "/proc/%s/exe", dir->d_name) < 0) { ++#endif ++#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) ++ if (sprintf (path, "/proc/%s/file", dir->d_name) < 0) { ++#endif + return -1; + } + -- cgit v1.2.3