home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Bug_Fixes / Net.v7bugs / 0082 < prev    next >
Encoding:
Text File  |  1982-02-23  |  1.1 KB  |  25 lines

  1. Autzoo.1421
  2. net.bugs.v7
  3. utcsrgv!utzoo!henry
  4. Tue Feb 23 19:21:01 1982
  5. plot -Tver temporary
  6. As distributed, the Versatec filter in plot(1) makes its scan-conversion
  7. temporary in /usr/tmp/raster rather than using a unique name, and leaves
  8. it around afterwards.  It creates it rw-rw-rw- so that in theory the next
  9. user to run Versatec output simply stomps it.  Problem:  if the first user
  10. has a non-zero umask, this doesn't work.  Worse, vplot does not complain,
  11. and subsequent users get copies of the first user's output rather than
  12. their own.  This is easily fixed:
  13.  
  14.     1. Change the initialization of picture to be "/tmp/verXXXXXX"
  15.         (or maybe "/usr/tmp/verXXXXXX").
  16.     2. Precede the creat of picture with mktemp(picture); .  You
  17.         might also want to change the creat mode to 0600.
  18.     3. Put an unlink(picture); before the exit() at the end of main.
  19.     4. Put an unlink(picture); before the exit() in onintr.
  20.  
  21. The only capability this loses is the ability to replot an old raster
  22. file without scan-converting again.  This doesn't seem a real problem.
  23. In fact, does anybody know why such a useless capability was included
  24. in the first place?
  25.