diff options
| author | John Marino <marino@FreeBSD.org> | 2014-11-06 10:13:06 +0000 |
|---|---|---|
| committer | John Marino <marino@FreeBSD.org> | 2014-11-06 10:13:06 +0000 |
| commit | 23da1af0915a08a58e9d829fa4db6a6a6e8ff755 (patch) | |
| tree | 352f4ed9fce7f7f54fad227a97a5cb039aca842c /net-mgmt/seafile/files/patch-lib_utils.c | |
| parent | net/babeld: update 1.5.0 -> 1.5.1 (diff) | |
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.
Diffstat (limited to 'net-mgmt/seafile/files/patch-lib_utils.c')
| -rw-r--r-- | net-mgmt/seafile/files/patch-lib_utils.c | 23 |
1 files changed, 23 insertions, 0 deletions
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; + } + |
