aboutsummaryrefslogtreecommitdiff
path: root/palm/synce-libsynce/files/patch-lib-files.c
diff options
context:
space:
mode:
Diffstat (limited to 'palm/synce-libsynce/files/patch-lib-files.c')
-rw-r--r--palm/synce-libsynce/files/patch-lib-files.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/palm/synce-libsynce/files/patch-lib-files.c b/palm/synce-libsynce/files/patch-lib-files.c
new file mode 100644
index 000000000000..eca6826ada9a
--- /dev/null
+++ b/palm/synce-libsynce/files/patch-lib-files.c
@@ -0,0 +1,21 @@
+--- lib/files.c.orig Tue May 17 01:42:34 2005
++++ lib/files.c Fri Jul 29 21:26:37 2005
+@@ -45,7 +45,8 @@
+ bool synce_get_directory(char** path)
+ {
+ char buffer[MAX_PATH];
+- char *p;
++ char *p;
++ struct passwd* user;
+
+ /* if there is a preference for config dir set
+ as an environment variable, use it */
+@@ -57,7 +58,7 @@
+ }
+
+ /* XXX: not very thread-safe? */
+- struct passwd* user = getpwuid(getuid());
++ user = getpwuid(getuid());
+
+ if (!path)
+ return false;