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

Re: Bug#80544: rename] can't rename dir with valid permissions

On Thu, 28 Dec 2000, Eray Ozkural (exa) wrote:

> Jason Henry Parker wrote:
> > At a guess, I would say this is a non-bug.
> I'm saying that I can't rename a file using gmc which I *can*
> otherwise rename. So your first guess in not very accurate.
> You know how to rename something in gmc, yes? You do that
> in the properties of a file, by editing the name and then
> clicking okay. The edit widget there becomes a ghost item
> in this startling case.
> Try to reproduce what I do there. The permissions on parent
> are irrelevant. That's a vfat filesystem. Permissions are
> same everywhere anyway if you wonder.
Give strace -erename output. If it comes empty - it's a bug in mc.
If it doesn't - you don't have permissions.

Frankly, I suspect the former - mc is choke-full of DWIM braindamage
(example: src/dir.c::add_dotdot_to_list() and its interplay with
vfs_canon() on the archive names starting with ~ - gotta love these
buffer overruns), so I would expect it to play silly buggers at every
convenient occasion and names with metacharacters sure as hell constitute

BTW, try the following:
mkdir '~root'
and enter the resulting directory. Funny, isn't it?

Reply to: