Commit 27d3806
committed
src/vipw.c: create_backup_file(): Use mask for mode_t
This is consistent with fmkstemp_set_perms() in lib/commonio.c.
This avoids accidentally granting dangerous permissions.
Closes: <#1500>
Reported-by: Alejandro Colomar <alx@kernel.org>
Suggested-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>1 parent b37bbc3 commit 27d3806
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments