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 | fc4d09a70f248215956863501c3b914d6363cf52 (patch) | |
| tree | 601b209815543ed3074298e6ca0ca8ac3ea2a85c | |
| parent | 6918396adb8b018d6b67ebe38c9a7759285f66c2 (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; |
