-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Winn wrote:
> I'm pretty sure you can only delete in-use directories with a call to
> unlink() at the system level. Both rm and rmdir are careful to leave
> the filesystem in a sensible state, but unlink() seems to assume that
> if you know enough to use a C compiler you know enough to deal with
> the consequences of unlinking a directory from the tree.

At least on linux, that's not true. Unlink only works on files, for
directories you want the rmdir syscall. Nonetheless, the directory
can still be the current working directory of some process. Said
process can however not do much with the directory afterwards.

And the manpage for unlink claims POSIX compliance...

Jens




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIhRigzhchXT4RR5ARAlU9AJ9fdw3N47HITwbGJELO/qqxqusB3gCg0KKh
1gP2py0Lifg2SVynBmdbaH8=
=HPJR
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui