diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2013-03-02 17:36:36 +0100 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2013-03-02 17:36:36 +0100 |
commit | 9288839793069e589615e4bb47257b63501586ae (patch) | |
tree | 7b8265d7370d2cf8579cfc38a5b3619cf6b02754 | |
parent | 3081d01a686922957fa298a3101f3cb1e8200ce7 (diff) |
Remove old hack for the "stat" permissions
7550343b09a94dc1c659ad74dc75b3b77e7ab0bc added a better way to set the permissions of that file,
so this old hack is not needed anymore.
* process.c (process_lookup_pid): Do not change the mode of ENTRIES[2].hook.
-rw-r--r-- | process.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -382,14 +382,6 @@ process_lookup_pid (struct ps_context *pc, pid_t pid, struct node **np) return EIO; } - /* FIXME: have a separate proc_desc structure for each file, so this can be - accessed in a more robust and straightforward way. */ - ((struct process_file_desc *) entries[2].hook)->mode = opt_stat_mode; - - /* FIXME: have a separate proc_desc structure for each file, so this can be - accessed in a more robust and straightforward way. */ - ((struct process_file_desc *) entries[2].hook)->mode = opt_stat_mode; - *np = procfs_dir_make_node (&dir_ops, ps); if (! *np) return ENOMEM; |