[Pkg-owncloud-commits] [ocsync] 06/07: Added patches/path_max.patch (Thanks Toscano & Signell)
Sandro Knauß
hefee-guest at alioth.debian.org
Thu Sep 26 17:50:03 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository ocsync.
commit d2e63ac8e03d7294e8b36964a50abb12fd8734e8
Author: Sandro Knauß <bugs at sandroknauss.de>
Date: Thu Sep 26 19:22:34 2013 +0200
Added patches/path_max.patch (Thanks Toscano & Signell)
---
debian/patches/path_max.patch | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 27 insertions(+)
diff --git a/debian/patches/path_max.patch b/debian/patches/path_max.patch
new file mode 100644
index 0000000..1a44ce3
--- /dev/null
+++ b/debian/patches/path_max.patch
@@ -0,0 +1,26 @@
+Index: ocsync/src/csync_misc.c
+===================================================================
+--- ocsync.orig/src/csync_misc.c 2013-09-26 19:14:02.163273147 +0200
++++ ocsync/src/csync_misc.c 2013-09-26 19:15:07.208725520 +0200
+@@ -88,7 +88,6 @@
+ #endif /* NSS_BUFLEN_PASSWD */
+
+ char *csync_get_user_home_dir(void) {
+- char home[PATH_MAX] = {0};
+ const char *envp;
+ struct passwd pwd;
+ struct passwd *pwdbuf;
+@@ -96,11 +95,8 @@
+ int rc;
+
+ envp = getenv("HOME");
+- if (envp != NULL) {
+- snprintf(home, sizeof(home), "%s", envp);
+- if (home[0] != '\0') {
+- return c_strdup(home);
+- }
++ if (envp != NULL && envp[0] != '\0') {
++ return c_strdup(envp);
+ }
+
+ /* Still nothing found, read the password file */
diff --git a/debian/patches/series b/debian/patches/series
index 21913e0..ce7124f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-csync_config-Drop-iniparser-dependency.patch
freebsd.patch
+path_max.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/ocsync.git
More information about the Pkg-owncloud-commits
mailing list