summaryrefslogtreecommitdiff
path: root/Userland/mm.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-28 14:11:51 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-10-28 14:11:51 +0100
commit97726862dd699cb0843b9d700789e30cf6625dc9 (patch)
tree07fd74e8e0e3b462ac5ab32994340c5090711348 /Userland/mm.cpp
parent1d4af5125078b097b9ab843d53ba50a0d9b1de5e (diff)
downloadserenity-97726862dd699cb0843b9d700789e30cf6625dc9.zip
Add basic symlink support.
- sys$readlink + readlink() - Add a /proc/PID/exe symlink to the process's executable. - Print symlink contents in ls output. - Some work on plumbing options into VFS::open().
Diffstat (limited to 'Userland/mm.cpp')
-rw-r--r--Userland/mm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/mm.cpp b/Userland/mm.cpp
index ee03598867..8cd674f255 100644
--- a/Userland/mm.cpp
+++ b/Userland/mm.cpp
@@ -3,7 +3,7 @@
int main(int c, char** v)
{
- int fd = open("/proc/mm");
+ int fd = open("/proc/mm", O_RDONLY);
if (fd == -1) {
perror("failed to open /proc/mm");
return 1;