diff options
author | jmmv <jmmv> | 2004-04-17 12:42:45 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2004-04-17 12:42:45 +0000 |
commit | ef21cce86733d4b772f863832c7c744d96e1bf2f (patch) | |
tree | 4062ef58298d0cbea6b2b6bd254c36192d3b5abc /mail/evolution/patches | |
parent | f3b0bb873258d71e18815f6cf6ac77467eb1e844 (diff) | |
download | pkgsrc-ef21cce86733d4b772f863832c7c744d96e1bf2f.tar.gz |
Really fix the permissions of files copied to ~/evolution, so that the
program does not give "Permission denied" arguments while running (and
things like the local mail folders work properly). Lets go with the
revision bump done recently.
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; + } + |