tech-kern archive

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

Re: zero-length symlinks



David Holland <dholland-tech%netbsd.org@localhost> writes:

> rmind@ points out that it's possible to create zero-length symlinks.
> As zero-length symlinks aren't sensible, this should probably be
> prohibited. Does anyone see any reason they shouldn't be?

What does POSIX say?

I note that one can't creaet a zero-length file:

  > touch ""
  touch: : No such file or directory

and a zero-length symlink seems more confounding than useful, so I'm
inclined to prohibit it.  Certainly the same rules about allowable names
should apply to symlinks and files.

Attachment: pgpUj7URyIq64.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index