bug-findutils
[Top][All Lists]
Advanced

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

locate.c (visit_exists): Use printname, not testname.


From: Bas van Gompel
Subject: locate.c (visit_exists): Use printname, not testname.
Date: Sun, 2 Jan 2005 22:37:35 +0100 (MET)
User-agent: slrn/0.9.8.1 (Win32) Hamster/2.0.6.0 Korrnews/4.2

Hi,

Another little patch, this time to make the combination of -e with
-i and/or --basename behave more like (I) expected.

Currently the (case folded/base) name gets checked for existence, and
most of the time /that/ does not exist.


2005-01-02  Bas van Gompel  <address@hidden>

        * locate/locate.c (visit_exists): Use printname, not testname.


--- findutils/locate/locate.c   2004-12-23 17:57:26.000000000 +0100
+++ findutils/locate/locate.c   2005-01-02 22:20:08.000000000 +0100
@@ -324,9 +324,9 @@ visit_exists(const char *testname, const
 {
   struct stat st;
   (void) context;
-  (void) printname;
+  (void) testname;
   
-  if (stat(testname, &st) != 0)
+  if (stat(printname, &st) != 0)
     {
       return VISIT_REJECTED;
     }


L8r,

Buzz.
-- 
  ) |  | ---/ ---/  Yes, this | This message consists of true | I do not
--  |  |   /    /   really is |   and false bits entirely.    | mail for
  ) |  |  /    /    a 72 by 4 +-------------------------------+ any1 but
--  \--| /--- /---  .sigfile. |   |perl -pe "s.u(z)\1.as."    | me. 4^re




reply via email to

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