summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--procfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/procfs.c b/procfs.c
index aa785d3..44e4f7e 100644
--- a/procfs.c
+++ b/procfs.c
@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <fcntl.h>
#include <mach.h>
#include <hurd/netfs.h>
@@ -76,6 +77,9 @@ struct node *procfs_make_node (const struct procfs_node_ops *ops, void *hook)
else
np->nn_stat.st_mode = S_IFREG | 0444;
+ np->nn_stat.st_uid = getuid ();
+ np->nn_stat.st_gid = getgid ();
+
return np;
fail: