Commit 634f8d0
committed
Don't follow symlinks when writing htop_history
Prevent a symlink attack that allow any file where a user has write
permission to be emptied.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>1 parent 1ebab17 commit 634f8d0
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments