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
This commit is contained in:
Stephan Aßmus 2009-08-31 13:16:40 +00:00
parent f7a0f575a8
commit 9e15ae596c

View File

@ -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;