home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / utils / bug / 1382 < prev    next >
Encoding:
Text File  |  1992-08-19  |  1.7 KB  |  44 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!hoqub.ATt.COM!rha
  3. From: rha@hoqub.ATt.COM
  4. Subject: Bug in fileutils-3.3 cp
  5. Message-ID: <9208191528.AA04390@life.ai.mit.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Wed, 19 Aug 1992 15:25:00 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 31
  12.  
  13. cp -P seems to fail when the destination directory names have certain lengths.
  14. The filename length of the file being copied doesn't seem to have any effect.
  15. However, the length of the destination directory that fails is increased by
  16. one if the file is given as a relative path. 
  17.  
  18. The following examples will fail.  You need to be root and in the root
  19. directory. The destination directories must exist.  You should also be able
  20. to create your own test cases such that you don't require root privileges.
  21.  
  22. I have not checked if destination directory lengths > 12 characters can cause
  23. errors.
  24.  
  25. /bin/cp -P /usr/bin/clear /aa            /* 3 chars */
  26. /bin/cp -P /usr/bin/clear aaa            /* 3 chars */
  27. /bin/cp -P usr/bin/clear  aaa1            /* 4 = 3+1 for relative path */
  28. /bin/cp -P usr/bin/clear  /aaa            /* 4 chars */
  29. /bin/cp -P /usr/bin/clear bbbbbbb        /* 7 chars */
  30. /bin/cp -P usr/bin/clear  bbbbbbb1        /* 8 chars */
  31. /bin/cp -P /usr/bin/clear ccccccccccc        /* 11 chars */
  32. /bin/cp -P usr/bin/clear  ccccccccccc1        /* 12 chars */
  33. /bin/cp -P /usr/bin/clear aaa/bbbbbbb        /* 11 chars */
  34. /bin/cp -P usr/bin/clear  aaa/bbbbbbb1        /* 12 chars */ 
  35.  
  36. This is the output of the 2nd and 3rd examples:
  37.  
  38. /bin/cp: cannot create regular file `aaa//usr/bin/clear': No such file or directory
  39. /bin/cp: cannot create regular file `aaa1/usr/bin/clear': No such file or directory
  40.  
  41. Richard Almquist
  42. rha@cbnewsi.att.com
  43.  
  44.