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

Re: [MiNT] Re-naming accs



Am 15.05.2010, 09:59 Uhr, schrieb Alan Hourihane <alanh@fairlite.co.uk>:

#cat t
set -x
./sleep.ttp 333&
mv sleep.ttp xy

t.out:

+ set -x
+ ./sleep.ttp 333
[1] 32
+ /bin/mv -iv sleep.ttp xy
`sleep.ttp' -> `xy'
/bin/mv: cannot move `sleep.ttp' to `xy': Permission denied

And looking at the code it's purposely done that this should fail with
permission denied. I'm not sure why though. It's an easy fix. Look at
fatfs.c and the function fatfs_rename() and the first #if 1 statement
should be made into #if 0. Try that and see if it helps.

Yep.

What are the side-effects?

--
Helmut Karlowski