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

Re: hardlink do katalogu?



Witam,

Dnia Wed, Feb 12, 2003 at 10:15:09PM CET, Mateusz Papiernik napisał:

: Cześć!
: 
: Taka ciekawostka - czy u Was też tak jest?
: 
: gohan@saiya:~$ sudo ln -d debian debi
: ln: tworzenie dowiązania `debi' do `debian': Operacja niedozwolona
: 
: ??? -d niby ma (z prawami roota) robic twarde dowiązania do katalogów, a
: efektem czegoś takiego jest to coś? Więc co jest grane?
Jezeli dobrze rozumiem angielski:

fs/namei.c
/*
 * Hardlinks are often used in delicate situations.  We avoid
 * security-related surprises by not following symlinks on the
 * newname.  --KAB
 *
 * We don't follow them on the oldname either to be compatible
 * with linux 2.0, and to avoid hard-linking to directories
 * and other special files.  --ADM
 */


-- 
Pozdrawiam,
TTC

  .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
.:: Tomasz T. Ciaszczyk [ ciacho<at>ciacho.pl ] >> http://ciacho.pl <<
.::
.:: Ciurlać się Wam zachciewa
.:: -- J. Stuhr
  `-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Attachment: pgpPDYaHHNid9.pgp
Description: PGP signature


Reply to: