mkdir -p through a dangling symlink

Kris Kennaway kris at FreeBSD.org
Mon Jun 30 17:51:49 UTC 2008


Suppose you do this:

gohan20# ln -sf /y/portbuild /var/portbuild
gohan20# mkdir -p /var/portbuild/scripts
mkdir: /var/portbuild: No such file or directory

(because /y/portbuild doesn't exist yet).

Is this the correct behaviour, or should mkdir -p be creating 
/var/portbuild/ before failing?

Kris


More information about the freebsd-standards mailing list