Thread View: gnu.utils.bug
1 messages
1 total messages
Started by rha
Wed, 19 Aug 1992 15:25
Bug in fileutils-3.3 cp
Author: rha
Date: Wed, 19 Aug 1992 15:25
Date: Wed, 19 Aug 1992 15:25
30 lines
1810 bytes
1810 bytes
cp -P seems to fail when the destination directory names have certain lengths. The filename length of the file being copied doesn't seem to have any effect. However, the length of the destination directory that fails is increased by one if the file is given as a relative path. The following examples will fail. You need to be root and in the root directory. The destination directories must exist. You should also be able to create your own test cases such that you don't require root privileges. I have not checked if destination directory lengths > 12 characters can cause errors. /bin/cp -P /usr/bin/clear /aa /* 3 chars */ /bin/cp -P /usr/bin/clear aaa /* 3 chars */ /bin/cp -P usr/bin/clear aaa1 /* 4 = 3+1 for relative path */ /bin/cp -P usr/bin/clear /aaa /* 4 chars */ /bin/cp -P /usr/bin/clear bbbbbbb /* 7 chars */ /bin/cp -P usr/bin/clear bbbbbbb1 /* 8 chars */ /bin/cp -P /usr/bin/clear ccccccccccc /* 11 chars */ /bin/cp -P usr/bin/clear ccccccccccc1 /* 12 chars */ /bin/cp -P /usr/bin/clear aaa/bbbbbbb /* 11 chars */ /bin/cp -P usr/bin/clear aaa/bbbbbbb1 /* 12 chars */ This is the output of the 2nd and 3rd examples: /bin/cp: cannot create regular file `aaa//usr/bin/clear': No such file or directory /bin/cp: cannot create regular file `aaa1/usr/bin/clear': No such file or directory Richard Almquist rha@cbnewsi.att.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads