From 9e15ae596c3cff7fc9c241ef74297b8785e3ec72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 31 Aug 2009 13:16:40 +0000 Subject: [PATCH] Added TODO about solving the renaming /boot problem differently as discussed with Ingo. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32856 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/rootfs.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/kernel/fs/rootfs.cpp b/src/system/kernel/fs/rootfs.cpp index bad69c96e6..fbb85ccdbc 100644 --- a/src/system/kernel/fs/rootfs.cpp +++ b/src/system/kernel/fs/rootfs.cpp @@ -938,6 +938,10 @@ rootfs_rename(fs_volume* _volume, fs_vnode* _fromDir, const char* fromName, toName)); // Prevent renaming /boot, since that will stop everything from working. + // TODO: This should be solved differently. Either root should still be + // able to do this or a mechanism should be introduced that does this + // at the VFS level, for example by checking nodes for a specific + // attribute. if (fromDirectory->id == 1 && strcmp(fromName, "boot") == 0) return EPERM;