From 03a97dfc6a1cc72f7bb84ebb9006a71311c56476 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 2 Jul 2002 22:31:33 +0000 Subject: [PATCH] r1621: Better error message. --- ROX-Filer/src/menu.c | 4 +++- ROX-Filer/src/type.c | 9 ++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ROX-Filer/src/menu.c b/ROX-Filer/src/menu.c index fd73db84..c3da73a2 100644 --- a/ROX-Filer/src/menu.c +++ b/ROX-Filer/src/menu.c @@ -809,10 +809,12 @@ static void target_callback(FilerWindow *filer_window, gint item, gpointer action) { - Collection *collection = filer_window->collection; + Collection *collection; g_return_if_fail(filer_window != NULL); + collection = filer_window->collection; + window_with_focus = filer_window; /* Don't grab the primary selection */ diff --git a/ROX-Filer/src/type.c b/ROX-Filer/src/type.c index 766b13d7..0cf289f4 100644 --- a/ROX-Filer/src/type.c +++ b/ROX-Filer/src/type.c @@ -356,7 +356,14 @@ gboolean type_open(const char *path, MIME_type *type) report_error(_("Executable '%s' is world-writeable! Refusing " "to run. Please change the permissions now (this " "problem may have been caused by a bug in earlier " - "versions of the filer)."), open); + "versions of the filer).\n\n" + "Having (non-symlink) run actions world-writeable " + "means that other people who use your computer can " + "replace your run actions with malicious versions.\n\n" + "If you trust everyone who could write to these files " + "then you needn't worry. Otherwise, you should check, " + "or even just delete, all the existing run actions."), + open); choices_dir = g_dirname(open); paths = g_list_append(NULL, choices_dir); action_chmod(paths, TRUE, "go-w (Fix security problem)"); -- 2.11.4.GIT