[6240] in Athena Bugs
vax 7.1H: AFS
daemon@ATHENA.MIT.EDU (John T Kohl)
Thu Oct 18 19:59:28 1990
Date: Thu, 18 Oct 90 19:59:13 -0400
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
System name: lycus
Type and version: CVAXSTAR 7.1H
Display type: SM
What were you trying to do?
move some files into a subdirectory.
What's wrong:
Under UFS, the (expected) error code is EINVAL; under AFS I get
ELOOP.
Script started on Thu Oct 18 19:53:35 1990
[{1}lycus:/site/tmp/foo]
% mkdir quux
[{1}lycus:/site/tmp/foo]
% touch foo bar
[{1}lycus:/site/tmp/foo]
% mv * quux
mv: quux: rename: Invalid argument
Exit 1 mv * quux
[{1}lycus:/site/tmp/foo]
% ls quux
bar foo typescript
[{1}lycus:/site/tmp/foo]
% cd ~
[{1}lycus:~]
% mkdir frob
[{1}lycus:~]
% cd frob
[{1}lycus:~/frob]
% mkdir quux
[{1}lycus:~/frob]
% touch foo bar
[{1}lycus:~/frob]
% mv * quux
mv: quux: rename: Too many levels of symbolic links
Exit 1 mv * quux
[{1}lycus:~/frob]
% ls quux
bar foo
[{1}lycus:~/frob]
% ls
quux
[{1}lycus:~/frob]
% exit
[{1}lycus:~/frob]
%
Script done on Thu Oct 18 19:54:24 1990
What should have happened:
I should have gotten EINVAL. From the rename(2) man page:
[EINVAL] From is a parent directory of to, or an
attempt is made to rename ``.'' or ``..''.
[ELOOP] Too many symbolic links were encountered in
translating either pathname.
Please describe any relevant documentation references:
rename(2)