On Tue, Jul 04, 2006 at 07:58:02PM +0200, Nikolay Sturm wrote:
> * Hannah Schroeter [2006-07-04]:
> > >Modified files:
> > >   infrastructure/db: systrace.filter 
> > 
> > >Log message:
> > >permit rename() from /tmp to /var/tmp, used by latex
> > 
> > What's the sense of that, when it'll probably fail with EXDEV on many
> > systems, anyway?
> 
> I don't understand your question.

Just a guess, but I think Hannah means the following:

NAME
     rename - change the name of a file

SYNOPSIS
     #include <stdio.h>

     int
     rename(const char *from, const char *to);

DESCRIPTION
     rename() causes the link named from to be renamed as to.  If to exists,
     it is first removed.  Both from and to must be of the same type (that is,
     both directories or both non-directories), and must reside on the same
     file system.

(...)

     [EXDEV]       The link named by to and the file named by from are on dif-
                   ferent logical devices (file systems).  Note that this er-
                   ror code will not be returned if the implementation permits
                   cross-device links.

In other words, rename("/tmp/a", "/var/tmp/b") is unlikely to work.

                Joachim

Reply via email to