Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!cs.utexas.edu!rice!sun-spots-request From: moj@mirfak.utu.fi (Matti Jokinen) Newsgroups: comp.sys.sun Subject: Sticky /tmp, bug in getwd(3)? Keywords: Miscellaneous Message-ID: <4500@brazos.Rice.edu> Date: 29 Jan 90 02:24:00 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 11 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 15, message 8 of 20 In order to increase security I set the sticky bit on the directories /tmp, /var/tmp and /var/spool/mail. One consequence was that small files started to accumulate in /tmp; the names of the files are of the form .getwdaNNNNN, where NNNNN is obviously a process number. It is not difficult to guess that the files are created by getwd(3), but I don't understand why they are not removed. The result of getwd seems to be unaffected. My SunOS version is 4.0.3. Matti Jokinen