Opened 13 years ago
Closed 13 years ago
#4830 closed defect (fixed)
Always umask before calling mkstemp()
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | mythtv | Version: | 0.21-fixes |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
Using mkstemp() is extremely good practice. Round of applause for mythtv being diligent about that. But when using mkstemp, it is always a good idea to set the process umask to a known safe value before using it. The call createTempFile() doesn't set the umask before calling. It should.
Attachments (1)
Change History (4)
Changed 13 years ago by
Attachment: | libs_libmyth_util.cpp-umask-before-mkstemp.patch added |
---|
comment:1 Changed 13 years ago by
Milestone: | 0.21 → 0.22 |
---|
comment:2 Changed 13 years ago by
Owner: | changed from Isaac Richards to danielk |
---|---|
Status: | new → assigned |
Note: See
TracTickets for help on using
tickets.
sets umask before mkstemp and then sets it back