Lines 1-6
Link Here
|
1 |
--- daemon/repo-mgr.c.orig 2014-08-30 02:03:22.367472662 -0400 |
1 |
--- daemon/repo-mgr.c.orig 2015-01-28 02:18:05.000000000 -0500 |
2 |
+++ daemon/repo-mgr.c 2014-08-30 02:10:42.071207749 -0400 |
2 |
+++ daemon/repo-mgr.c 2015-01-28 02:22:10.000000000 -0500 |
3 |
@@ -1720,12 +1720,12 @@ |
3 |
@@ -2514,13 +2514,13 @@ |
4 |
gboolean force_conflict = FALSE; |
4 |
gboolean force_conflict = FALSE; |
5 |
gboolean update_mode_only = FALSE; |
5 |
gboolean update_mode_only = FALSE; |
6 |
|
6 |
|
Lines 10-22
Link Here
|
10 |
+#else |
10 |
+#else |
11 |
path = build_case_conflict_free_path (worktree, name, |
11 |
path = build_case_conflict_free_path (worktree, name, |
12 |
conflict_hash, no_conflict_hash, |
12 |
conflict_hash, no_conflict_hash, |
13 |
&case_conflict); |
13 |
&case_conflict, |
|
|
14 |
FALSE); |
14 |
-#else |
15 |
-#else |
15 |
- path = build_checkout_path (worktree, name, strlen(name)); |
16 |
- path = build_checkout_path (worktree, name, strlen(name)); |
16 |
#endif |
17 |
#endif |
17 |
|
18 |
|
18 |
if (!path) |
19 |
if (!path) |
19 |
@@ -1858,12 +1858,12 @@ |
20 |
@@ -2675,13 +2675,13 @@ |
20 |
char *path; |
21 |
char *path; |
21 |
gboolean case_conflict = FALSE; |
22 |
gboolean case_conflict = FALSE; |
22 |
|
23 |
|
Lines 26-50
Link Here
|
26 |
+#else |
27 |
+#else |
27 |
path = build_case_conflict_free_path (worktree, name, |
28 |
path = build_case_conflict_free_path (worktree, name, |
28 |
conflict_hash, no_conflict_hash, |
29 |
conflict_hash, no_conflict_hash, |
29 |
&case_conflict); |
30 |
&case_conflict, |
|
|
31 |
FALSE); |
30 |
-#else |
32 |
-#else |
31 |
- path = build_checkout_path (worktree, name, strlen(name)); |
33 |
- path = build_checkout_path (worktree, name, strlen(name)); |
32 |
#endif |
34 |
#endif |
33 |
|
35 |
|
34 |
if (!path) |
36 |
if (!path) |
35 |
@@ -2088,12 +2088,12 @@ |
37 |
@@ -2839,13 +2839,13 @@ |
|
|
38 |
old_path = g_build_filename (worktree, de->name, NULL); |
36 |
|
39 |
|
37 |
char *new_path; |
40 |
if (seaf_util_exists (old_path)) { |
38 |
gboolean case_conflict; |
|
|
39 |
-#ifndef __linux__ |
41 |
-#ifndef __linux__ |
40 |
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) |
42 |
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) |
41 |
+ new_path = build_checkout_path (worktree, de->new_name, strlen(de->new_name)); |
43 |
+ new_path = build_checkout_path (worktree, de->new_name, strlen(de->new_name)); |
42 |
+#else |
44 |
+#else |
43 |
new_path = build_case_conflict_free_path (worktree, de->new_name, |
45 |
new_path = build_case_conflict_free_path (worktree, de->new_name, |
44 |
conflict_hash, no_conflict_hash, |
46 |
conflict_hash, no_conflict_hash, |
45 |
&case_conflict); |
47 |
&case_conflict, |
|
|
48 |
TRUE); |
46 |
-#else |
49 |
-#else |
47 |
- new_path = build_checkout_path (worktree, de->new_name, strlen(de->new_name)); |
50 |
- new_path = build_checkout_path (worktree, de->new_name, strlen(de->new_name)); |
48 |
#endif |
51 |
#endif |
49 |
|
52 |
|
50 |
if (g_file_test (old_path, G_FILE_TEST_EXISTS) && |
53 |
if (seaf_util_rename (old_path, new_path) < 0) { |