diff options
author | Madhusudan.C.S <madhusudancs@gmail.com> | 2008-08-30 22:48:00 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-08-01 01:43:05 +0200 |
commit | 391c62031b4fe6fa0a2f031d9f6dcf4dcd04e5ce (patch) | |
tree | 50bf8b61f861309b62dc3196bfaad8f993a9c663 /procfs_pid_files.c | |
parent | 19953dc4ba760988f611d03dffc4b5549077d2fc (diff) |
2008-08-30 Madhusudan.C.S <madhusudancs@gmail.com>
* procfs_dir.c: (procfs_dir_create): Assign newly created directory to
its pointer in netnode.
(procfs_dir_remove): Removed function.
(free_entry): New function.
(ordered_unlink): Likewise.
(delete): Likewise.
(sweep): Likewise.
(procfs_dir_entries_remove): Likewise.
(is_in_pid_list): Removed call to make_dir_invalid ().
(procfs_fill_root_dir): struct stat *stat -> struct stat stat.
Add Read and Execute permissions to all in stat.st_mode.
Set stat.st_nlink to 1.
Set stat.st_size to 0.
Add struct proc_stat *ps definition.
Set struct proc_stat data from _proc_stat_create () function and
set stat.st_uid and stat.st_gid from the data in that structure.
* procfs_pid_files.c: (update_pid_entries): Add Read permissions
to all in stat->st_mode.
Diffstat (limited to 'procfs_pid_files.c')
-rw-r--r-- | procfs_pid_files.c | 2 |
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); |