[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in mv from fileutils 4.x when renaming symlink
From: |
Igor Bukanov |
Subject: |
Bug in mv from fileutils 4.x when renaming symlink |
Date: |
Thu, 23 Nov 2000 12:46:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; m18) Gecko/20001010 |
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 in mv from fileutils 4.x when renaming symlink,
Igor Bukanov <=