• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating temporary files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating temporary files?


  • Subject: Re: Creating temporary files?
  • From: Chris Ridd <email@hidden>
  • Date: Mon, 24 Jun 2002 10:48:07 +0100

On 22/6/02 6:39 pm, Paul Chakravarti (pc000) <email@hidden>
wrote:

> On Saturday, June 22, 2002, at 12:35 PM, Per Persson wrote:
>
>>>> On Friday, June 21, 2002, at 01:39 PM, Dinu Gherman wrote:
>>>>
>>>> Isn't there some standard way to create a temp file
>>>
>>> Check out the C functions tmpfile() and tmpnam().
>>>
>>> sherm--
>>
>
> You need to be careful with race conditions when creating temp
> files - the mkstemp(3) interface (which atomically creates and
> returns fhe file descriptor of the tmp file) is the preferred
> mechanism rather than tmpfile/tmpname (which are largely
> deprecated).
>
> PaulC

This is good advice. For details read the "Insecure Use of Temporary Files"
section of:

<http://www.securityfocus.com/popups/forums/secprog/secure-programming.shtml
>

Cheers,

Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Creating temporary files? (From: Paul Chakravarti (pc000) <email@hidden>)

  • Prev by Date: Re: [OT] Re: Protecting Software w/ Software License Keys...
  • Next by Date: NSFontManager changeFont not called
  • Previous by thread: Re: Creating temporary files?
  • Next by thread: Re: My newbie question..
  • Index(es):
    • Date
    • Thread