[mythtv-commits] Ticket #4830: Always umask before calling mkstemp()
MythTV
mythtv at cvs.mythtv.org
Mon Mar 3 16:58:05 UTC 2008
#4830: Always umask before calling mkstemp()
---------------------------------------------+------------------------------
Reporter: Erik Hovland <erik at hovland.org> | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: 0.21
Component: mythtv | Version: 0.21-fixes
Severity: low | Mlocked: 0
---------------------------------------------+------------------------------
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.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4830>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list