From 6a8a4b7e9affb35851a8f5c27a81c707a3090954 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Fri, 23 Oct 2009 08:09:49 +0200 Subject: Nothing reall --- Source/Kernel/TaskManager/Process.class.cpp | 3 ++- Source/Kernel/UserManager/Usr.ns.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/Kernel') diff --git a/Source/Kernel/TaskManager/Process.class.cpp b/Source/Kernel/TaskManager/Process.class.cpp index a19fc9e..5b777ed 100644 --- a/Source/Kernel/TaskManager/Process.class.cpp +++ b/Source/Kernel/TaskManager/Process.class.cpp @@ -4,6 +4,7 @@ #include #include #include +#include namespace Mem { extern Heap kheap; @@ -176,7 +177,7 @@ u32int Process::allocPageSC(u32int pos) { } u32int Process::getCmdlineSC() { - if (Task::currProcess()->getPid() == m_pid or Task::currProcess()->getPid() == 0) return m_cmdline.serialize(); + if (Task::currProcess()->getUid() == m_uid or Usr::uid() == 0) return m_cmdline.serialize(); return (u32int) - 1; } diff --git a/Source/Kernel/UserManager/Usr.ns.h b/Source/Kernel/UserManager/Usr.ns.h index 397b393..36ee2cb 100644 --- a/Source/Kernel/UserManager/Usr.ns.h +++ b/Source/Kernel/UserManager/Usr.ns.h @@ -21,3 +21,5 @@ namespace Usr { }; #endif + +#include -- cgit v1.2.3