There are already lots of tmp_file_name ("/tmp", ",,bluh"); in the tree
so I don't see the point of doing this here. Maybe eventually we can
cleean up all of those to obey TMPDIR.  
Derek

> -----Original Message-----
> From: Matthieu Moy [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, November 19, 2005 3:50 AM
> To: Derek Zhou
> Cc: [EMAIL PROTECTED]; Gnu-arch-users@gnu.org
> Subject: Re: patch: clean up some cacherev mess
> 
> Derek Zhou <[EMAIL PROTECTED]> writes:
> 
> > --- orig/libarch/archive-cache.c
> > +++ mod/libarch/archive-cache.c
> > @@ -27,7 +27,7 @@
> >    t_uchar * tmp_dir = 0;
> >    t_uchar * pristine_dir = 0;
> >  
> > -  tmp_dir = tmp_file_name (".", ",,archive-cache-revision");
> > +  tmp_dir = tmp_file_name ("/tmp", ",,archive-cache-revision");
> >    pristine_dir = file_name_in_vicinity (0, tmp_dir, revision);
> >  
> >    safe_mkdir (tmp_dir, 0777);
> >
> >
> 
> "/tmp/" should be something like tmp_dir(...) (with the appropriate
> "free") to obey TMPDIR.
> 
> -- 
> Matthieu
> 


_______________________________________________
Gnu-arch-users mailing list
Gnu-arch-users@gnu.org
http://lists.gnu.org/mailman/listinfo/gnu-arch-users

GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/

Reply via email to