diff options
Diffstat (limited to 'mail/evolution/patches')
-rw-r--r-- | mail/evolution/patches/patch-ah | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/mail/evolution/patches/patch-ah b/mail/evolution/patches/patch-ah index dc7d6b4c173..485edeba241 100644 --- a/mail/evolution/patches/patch-ah +++ b/mail/evolution/patches/patch-ah @@ -1,6 +1,6 @@ -$NetBSD: patch-ah,v 1.4 2004/01/04 21:37:09 rh Exp $ +$NetBSD: patch-ah,v 1.5 2004/04/17 12:42:45 jmmv Exp $ ---- shell/e-setup.c.orig 2003-04-17 00:37:56.000000000 +1000 +--- 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 } @@ -19,3 +19,32 @@ $NetBSD: patch-ah,v 1.4 2004/01/04 21:37:09 rh Exp $ } 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; + } + |