bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: Re: error.c: "Unknown system error" should report errno value


From: Bruno Haible
Subject: Re: Fwd: Re: error.c: "Unknown system error" should report errno value
Date: Sun, 7 Oct 2007 19:39:47 +0200
User-agent: KMail/1.5.4

> > "rm d" should fail at
> > remove.c:1094  with   "cannot remove 'd':  Is a directory"
> > but fails there with  "cannot remove 'd':  No such file or diectory"

remove.c:1094 reads like this:

          error (0, errno, _("cannot remove %s"),
                 quote (full_filename (filename)));

_() and quote() preserve errno, but full_filename () does not: it calls
realloc() and free().

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]