Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!cbnewsi!npl From: npl@cbnewsi.ATT.COM (nickolas.landsberg) Newsgroups: comp.unix.wizards Subject: Re: rename strangeness, a possible bug Summary: Changing parents Message-ID: <647@cbnewsi.ATT.COM> Date: 25 Aug 89 18:44:19 GMT References: <24612@santra.UUCP> <8352@boring.cwi.nl> Organization: AT&T Bell Laboratories Lines: 18 In article <24612@santra.UUCP> jkp@cs.HUT.FI (Jyrki Kuoppala) writes: > jkp@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@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