Sticky /tmp, bug in getwd(3)?

Matti Jokinen moj at mirfak.utu.fi
Mon Jan 29 13:24:00 AEST 1990


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



More information about the Comp.sys.sun mailing list