Trailing slash with symlinks and rmdir/rename

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux