rename strangeness, a possible bug
nickolas.landsberg
npl at cbnewsi.ATT.COM
Sat Aug 26 04:44:19 AEST 1989
In article <24612 at santra.UUCP> jkp at cs.HUT.FI (Jyrki Kuoppala) writes:
> jkp at joker.hut.fi 'src' 451: ls -lagF
> total 4
> drwxrwxr-x 4 root staff 512 Aug 25 01:04 ./
> drwxr-xr-x 6 nobody wheel 512 Aug 23 23:33 ../
> drwxr-xr-x 2 haa staff 512 Aug 24 16:32 OS-hd-fix/
> drwxrwxr-x 4 jkp staff 512 Aug 25 01:04 local/
> jkp at joker.hut.fi 'src' 452: mv OS-hd-fix local
> mv: OS-hd-fix: rename: Permission denied
"mv" only allows the rename of a directory "only if the the two
directories have the same parent." In this case, the attempted move
was to a different directory. Details of why whis is have slipped
from memory but probably have somthing to do with the necessity of
changing the inode number for ".." in the original directory in addition
to changing link counts in the original parent and the new parent.
Nick Landsberg
More information about the Comp.unix.wizards
mailing list