[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #11715] -xtype and %Y broken
From: |
Andreas Schwab |
Subject: |
[bugs #11715] -xtype and %Y broken |
Date: |
Mon, 24 Jan 2005 13:11:40 +0000 |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux 2.6.8-25-default; ia64) KHTML/3.3.91 (like Gecko) |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11715>
Summary: -xtype and %Y broken
Project: findutils
Submitted by: schwab
Submitted on: Mon 01/24/2005 at 13:11
Category: find
Severity: 5 - Average
Item Group: Wrong result
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 4.2.13
Fixed Release: None
_______________________________________________________
Details:
--- find/pred.c
+++ find/pred.c
@@ -841,7 +841,16 @@
{
struct stat sbuf;
int (*ystat) ();
- ystat = options.xstat == lstat ? stat : lstat;
+
+ switch (options.symlink_handling)
+ {
+ case SYMLINK_ALWAYS_DEREF:
+ ystat = optionp_stat;
+ case SYMLINK_DEREF_ARGSONLY:
+ case SYMLINK_NEVER_DEREF:
+ ystat = optionl_stat;
+ }
+
if ((*ystat) (state.rel_pathname, &sbuf) != 0)
{
if ( errno == ENOENT ) {
@@ -1474,10 +1483,10 @@
switch (options.symlink_handling)
{
case SYMLINK_ALWAYS_DEREF:
- ystat = optionl_stat;
+ ystat = optionp_stat;
case SYMLINK_DEREF_ARGSONLY:
case SYMLINK_NEVER_DEREF:
- ystat = optionp_stat;
+ ystat = optionl_stat;
}
if ((*ystat) (state.rel_pathname, &sbuf) != 0)
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11715>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bugs #11715] -xtype and %Y broken,
Andreas Schwab <=