From bcb55caad237e54bec68836a0e6a55939787d24f Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 3 May 2005 16:40:25 +0000 Subject: [PATCH] r3909: World-writable directories can't be app dirs (Thomas Leonard). --- ROX-Filer/Help/Changes | 4 ++++ ROX-Filer/src/diritem.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ROX-Filer/Help/Changes b/ROX-Filer/Help/Changes index 4c25ebb5..11c6a8b6 100644 --- a/ROX-Filer/Help/Changes +++ b/ROX-Filer/Help/Changes @@ -2,6 +2,10 @@ A RISC OS-like filer for X by Thomas Leonard +03-May-2005 +~~~~~~~~~~~ +World-writable directories can't be app dirs (Thomas Leonard). + 02-May-2005 ~~~~~~~~~~~ Updated Chinese translation (Babyfai Cheung). diff --git a/ROX-Filer/src/diritem.c b/ROX-Filer/src/diritem.c index 9b0d6a15..317d2f26 100644 --- a/ROX-Filer/src/diritem.c +++ b/ROX-Filer/src/diritem.c @@ -279,6 +279,9 @@ static void examine_dir(const guchar *path, DirItem *item, uid_t uid) return; /* Try to avoid automounter problems */ } + if (item->mode & S_IWOTH) + return; /* Don't trust world-writable dirs */ + /* Finding the icon: * * - If it contains a .DirIcon then that's the icon -- 2.11.4.GIT