Hard links to directories: why not?
andrew.d.hay
mvadh at cbnews.att.com
Thu Jul 19 22:10:48 AEST 1990
In article <10527 at odin.corp.sgi.com> schuman at sgi.com (Aaron Schuman) writes:
[]
"A foolish user could create loops in the directory structure.
it would be easy to have ln disallow this:
1) resolve argv[1] and argv[2] to absolute paths
2) determine which path is shorter
3) strncmp() both paths for the shorter length
4) if you have a match, you're trying to create a loop
this would also let you safely mv directories...
--
Andrew Hay +------------------------------------------------------+
Ragged Individualist | But I thought we were *ALL* iconoclasts! |
AT&T-BL Ward Hill MA | I was just trying to fit in!!! |
a.d.hay at att.com +------------------------------------------------------+
More information about the Comp.unix.wizards
mailing list