Mailinglist Archive: opensuse-security (226 mails)

< Previous Next >
Re: [suse-security] Re: Strange links, /usr/bin/[ ?
  • From: "Carlos E. R." <robin1.listas@xxxxxxxxxx>
  • Date: Mon, 11 Apr 2005 00:40:01 +0200 (CEST)
  • Message-id: <Pine.LNX.4.58.0504110019260.7130@xxxxxxxxxxxxxxxx>

The Wednesday 2005-04-06 at 13:54 +0200, Roland Kuhn wrote:

> > Ah, I see. So it is not easy as well to know if a file somewhere is
> > hardlinked somewhere else, except by comparing all inode entries in all
> > directory lists from the same partition/disk.
> >
> No, there's also the link count (see man 3 stat, struct stat->st_nlink), which
> is displayed e.g. by ls -l.

Ah, I see, I hadn't noticed. Except for directories, it must mean
something else. I don't see it in "man ls".


[inode doc]

> Don't know of a formal description, read the linux source (include/linux/fs.h
> and fs/inode.c seem like a starting point) ;-)

For linux programmers, and I ain't that :-)

--
Cheers,
Carlos Robinson


< Previous Next >
Follow Ups