Hi!

When I use mv to rename sym link to directory via:

mv sym_link/ new_name

mv actually rename the directory link point to. In some situation I also 
got:

mv: basename.c:67: base_name: Assertion `all_slashes || *(p - 1) != '/' 
failed.

He is a simple test to reproduce the problem:

cd /tmp
mkdir test_dir
touch test_dir/a
ln -s test_dir link1
mv link1/ link2

This will rename test to link2 and left link1 as if.

I have also a case when this procedure trigers assert, but it involves 
renaming a symlink to tree with jdk files and I am not sure what exactly 
trigers it - I can make a simple test case for you if necessary.

I have got the fileutils as a part of RedHat 7.0, there 
fileutils-4.0x-3.i386.rpm RPM.

mv --version
mv (GNU fileutils) 4.0x
Written by Mike Parker, David MacKenzie, and Jim Meyering.

Copyright (C) 2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Regards, Igor


_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to