home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0093 < prev    next >
Encoding:
Text File  |  1982-03-24  |  643 b   |  18 lines

  1. Autzoo.1503
  2. net.bugs.v7
  3. utcsrgv!utzoo!henry
  4. Wed Mar 24 19:16:53 1982
  5. cp misfeature
  6. The command "cp <directory> <file>" will work, but does not yield a very
  7. intelligible file as a result.  Most naive users don't really grasp the
  8. notion that directories are just a special kind of file, and are confused
  9. by the appearance of this strange little gibberish file.  We found this
  10. a headache, and since the command seems singularly useless, we added
  11. the following code just after the assignment to "mode" in cp.c/copy():
  12.  
  13.     if ((mode&S_IFMT) == S_IFDIR) {
  14.         close(fold);
  15.         fprintf(stderr, "cp: %s is a directory -- ignored.\n", from);
  16.         return(1);
  17.     }
  18.