summaryrefslogtreecommitdiff
path: root/procfs_pid_files.c
diff options
context:
space:
mode:
Diffstat (limited to 'procfs_pid_files.c')
-rw-r--r--procfs_pid_files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/procfs_pid_files.c b/procfs_pid_files.c
index ed3a3bdc..46861531 100644
--- a/procfs_pid_files.c
+++ b/procfs_pid_files.c
@@ -48,7 +48,7 @@ update_pid_entries (struct procfs_dir *dir, const char *name,
{
struct procfs_dir_entry *dir_entry;
struct stat *stat = (struct stat *) malloc (sizeof (struct stat));
- stat->st_mode = S_IFREG;
+ stat->st_mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH;
dir_entry = update_entries_list (dir, name, stat,
timestamp, symlink_target);