home *** CD-ROM | disk | FTP | other *** search
- From: arnold@audiofax.com (Arnold Robbins)
-
- In article <591@longway.TIC.COM> bvs@amdcad.uucp (Bakul Shah) writes:
- >I hope there is time yet to add/consider another function for
- >completeness sake.
- >
- > int writelink(char *symlink_path, char *new_target_path)
- >or if you prefer,
- > int updatelink(char *symlink_path, char *new_target_path)
- >
- >This replaces the `contents' of a symlink, thereby *not* breaking
- >any hard-links to the symlink. [.....]
-
- On BSD-flavored systems that I'm familiar with, there is no such thing as
- a hard link to a symlink. I tried it once; the link(2) call goes through
- the symlink and creates a link to the pointed-to file, not to the symlink
- itself.
-
- This is actually somewhat consistent: If B is a hard link to A, a link(2)
- to B creates another link to A.
-
- I agree though that the point is quite arguable; I am merely stating what
- I have observed. I don't care to postulate on what Should Be.
- --
- Arnold Robbins -- Senior Research Scientist - AudioFAX | Laundry increases
- 2000 Powers Ferry Road, #220 / Marietta, GA. 30067 | exponentially in the
- INTERNET: arnold@audiofax.com Phone: +1 404 933 7600 | number of children.
- UUCP: emory!audfax!arnold Fax: +1 404 933 7606 | -- Miriam Robbins
-
- Volume-Number: Volume 19, Number 24
-
-