summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-23 08:09:49 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-23 08:09:49 +0200
commit6a8a4b7e9affb35851a8f5c27a81c707a3090954 (patch)
tree328432261e66c77cd9364add0ee461e7d823a298 /Source
parente70b7c569ba13a68aba1c2b127811e61ac88a902 (diff)
downloadMelon-6a8a4b7e9affb35851a8f5c27a81c707a3090954.tar.gz
Melon-6a8a4b7e9affb35851a8f5c27a81c707a3090954.zip
Nothing reall
Diffstat (limited to 'Source')
-rw-r--r--Source/Kernel/TaskManager/Process.class.cpp3
-rw-r--r--Source/Kernel/UserManager/Usr.ns.h2
2 files changed, 4 insertions, 1 deletions
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 <VFS/File.class.h>
#include <Linker/Binary.proto.h>
#include <Process.iface.h>
+#include <UserManager/Usr.ns.h>
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 <UserManager/User.class.h>