* Trailing slash with symlinks and rmdir/rename
@ 2013-09-09 21:08 Ross Lagerwall
0 siblings, 0 replies; only message in thread
From: Ross Lagerwall @ 2013-09-09 21:08 UTC (permalink / raw)
To: linux-fsdevel; +Cc: linux-kernel, Alexander Viro
Hi,
I have noticed that if X is a symlink to a directory Y, doing "rmdir X/"
or "mv X/ Z" does not behave how I expect.
My reading of POSIX 2008 (and the behaviour of FreeBSD and OpenIndiana)
is that a symbolic link to a directory followed by a trailing slash
should behave as though it names the directory pointed to by the
symbolic link.
So while Linux gives ENOTDIR for "rmdir X/", the others remove Y.
Is this a bug? If it is, I can have a go at writing a patch.
Regards
--
Ross Lagerwall
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-09 21:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-09 21:08 Trailing slash with symlinks and rmdir/rename Ross Lagerwall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).