1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
$NetBSD: patch-ah,v 1.5 2004/04/17 12:42:45 jmmv Exp $
--- shell/e-setup.c.orig 2003-04-16 16:37:56.000000000 +0200
+++ shell/e-setup.c
@@ -139,6 +139,16 @@ check_evolution_directory (const char *e
}
g_free (command);
+
+ command = g_strconcat ("chmod -R u+w ",
+ evolution_directory,
+ NULL);
+
+ if (system (command) != 0) {
+ retval = FALSE;
+ }
+
+ g_free (command);
}
if (retval == FALSE)
@@ -170,19 +180,22 @@ copy_default_stuff (const char *evolutio
return FALSE;
}
+ retval = TRUE;
+
command = g_strconcat ("cp -r " DEFAULT_USER_PATH "/* ", evolution_directory, NULL);
+ retval &= (system (command) == 0);
+ g_free (command);
+
+ command = g_strconcat ("chmod -R u+w ", evolution_directory, NULL);
+ retval &= (system (command) == 0);
+ g_free (command);
- if (system (command) != 0) {
+ if (!retval) {
/* FIXME: Give more help. */
e_notice (NULL, GTK_MESSAGE_ERROR,
_("An error occurred in copying files into\n`%s'."), evolution_directory);
- retval = FALSE;
- } else {
- retval = TRUE;
}
- g_free (command);
-
return retval;
}
|