Hello James,
here are some more details:
ls -il
164407 drwxr-x--- 2 guenter guenter 4096 2013-07-14 11:23 Ablage
it's a directory
find -links 2
./Ablage
this directory is't linked anyway. There are no files or other directories
inside
Am 14.07.2013 21:18, schrieb James Youngman:
On Sun, Jul 14, 2013 at 11:19 AM, Günter Wallnig <address@hidden> wrote:
Hello, people,
I believe to have found a mistake in "find" with the param "-links":
Apparently, only the second Column of the output of "ls" looks at what is
probably wrong with a directory!
Sincerely yours
G. Wallnig
Please excuse my bad English!
I'm sorry, but from what you wrote I'm not able to understand the
problem you're trying to point out. Please try again, providing more
detail.
What command did you use, precisely?
see above
What result did you expect, precisely?
only real (hard) linked files
What result did you get, precisely?
see above
Why do you think that's wrong?
I think, the command is normally used to find linked files. directories
can't hard linked ... a soft link doesn't exist there. The directory is
empty.
Which version of GNU findutils are you using?
find --version
find (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Erzeugt mit der GNU gnulib Version
e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Aktivierte Eigenschaften: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION
FTS() CBO(level=0)
Can you reproduce the same effect using the newest version on
ftp.gnu.org/pub/gnu/findutils?
there are no newer version
Here are some more information about system:
uname -r
2.6.38-16-generic
cat /proc/version_signature
Ubuntu 2.6.38-16.67-generic 2.6.38.8
cat /etc/debian_version
squeeze/sid
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
I hope this helps?
Günter