Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: many tmp files of fsvs in /tmp

fsvs
Discussion topic

Back to topic list

Re: many tmp files of fsvs in /tmp

Author pmarek
Full name P.Marek
Date 2008-09-10 09:10:34 PDT
Message Hello Roland,

On Wednesday 10 September 2008 Philipp Marek wrote:
> I'll take a look.
Does this patch help?


Regards,

Phil


Index: waa.c
====================​====================​====================​=======
--- waa.c (Revision 1873)
+++ waa.c (Arbeitskopie)
@@ -2873,9 +2873,11 @@ int waa__get_tmp_name(const char *base_d
        }

        strcpy( filename + len, to_append);
- /* The default values include APR_DELONCLOSE, which we don't want. */
+ /* The default values include APR_DELONCLOSE, which we only want if the
+ * caller is not interested in the name. */
        STOPIF( apr_file_mktemp(handle, filename,
- APR_CREATE | APR_READ | APR_WRITE | APR_EXCL,
+ APR_CREATE | APR_READ | APR_WRITE | APR_EXCL |
+ (output ? 0 : APR_DELONCLOSE),
                                pool),
                        "Cannot create a temporary file for \"%s\"", filename);



--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 6 of 6 | Next message in topic »

Messages

Show all messages in topic

many tmp files of fsvs in /tmp rsl <rslsp1 at online dot de> rsl <rslsp1 at online dot de> 2008-09-08 10:55:52 PDT
     Re: many tmp files of fsvs in /tmp pmarek P.Marek 2008-09-08 23:58:57 PDT
         Re: many tmp files of fsvs in /tmp rsl <rslsp1 at online dot de> rsl <rslsp1 at online dot de> 2008-09-09 00:18:18 PDT
             Re: many tmp files of fsvs in /tmp pmarek P.Marek 2008-09-09 10:14:37 PDT
                 Re: many tmp files of fsvs in /tmp pmarek P.Marek 2008-09-10 09:07:04 PDT
                     Re: many tmp files of fsvs in /tmp pmarek P.Marek 2008-09-10 09:10:34 PDT
Messages per page: