[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] find/pred.c: basename versus base_name.
From: |
Bas van Gompel |
Subject: |
[patch] find/pred.c: basename versus base_name. |
Date: |
Wed, 2 Feb 2005 22:57:40 +0100 (MET) |
User-agent: |
slrn/0.9.8.1 (Win32) Hamster/2.0.6.0 Korrnews/4.2 |
Hallo,
Trying to get findutils to build on cygwin, I needed to apply following
patch. It now builds (and runs) fine for me.
2005-02-02 Bas van Gompel <address@hidden>
* find/pred.c (pred_exec): Use base_name, not basename.
(pred_ok): Ditto.
--- mine/findutils/find/pred.c 2005-02-01 04:03:46.000000000 +0100
+++ mine/findutils/find/pred.c 2005-02-02 21:06:32.000000000 +0100
@@ -544,7 +544,7 @@ pred_exec (char *pathname, struct stat *
boolean
pred_execdir (char *pathname, struct stat *stat_buf, struct predicate
*pred_ptr)
{
- const char *s = basename(pathname);
+ const char *s = base_name(pathname);
return new_impl_pred_exec(s, stat_buf, pred_ptr, "./", 2);
}
@@ -1147,7 +1147,7 @@ pred_ok (char *pathname, struct stat *st
boolean
pred_okdir (char *pathname, struct stat *stat_buf, struct predicate *pred_ptr)
{
- const char *s = basename(pathname);
+ const char *s = base_name(pathname);
if (is_ok(pred_ptr->args.exec_vec.replace_vec[0], pathname))
return new_impl_pred_exec (s, stat_buf, pred_ptr, "./", 2);
HTH, 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
- [patch] find/pred.c: basename versus base_name.,
Bas van Gompel <=
- Re: [patch] find/pred.c: basename versus base_name., Dmitry V. Levin, 2005/02/02
- Re: [patch] find/pred.c: basename versus base_name., Bas van Gompel, 2005/02/03
- Re: [patch] find/pred.c: basename versus base_name., Dmitry V. Levin, 2005/02/03
- Re: [patch] find/pred.c: basename versus base_name., Bas van Gompel, 2005/02/03
- Re: [patch] find/pred.c: basename versus base_name., James Youngman, 2005/02/03
- Bugfix: Failure of -execdir to process arguments at depth 0, James Youngman, 2005/02/05
- Re: Bugfix: Failure of -execdir to process arguments at depth 0, Bas van Gompel, 2005/02/05
- Re: Bugfix: Failure of -execdir to process arguments at depth 0, Dmitry V. Levin, 2005/02/05
- Re: Bugfix: Failure of -execdir to process arguments at depth 0, James Youngman, 2005/02/06
- Re: Bugfix: Failure of -execdir to process arguments at depth 0, Dmitry V. Levin, 2005/02/06