home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.sys.sun.misc
- Subject: Re: tmp doesn't seem to be clearing. . .
- Keywords: tmp files hvtmp
- Message-ID: <14636@auspex-gw.auspex.com>
- Date: 15 Sep 92 05:24:40 GMT
- References: <1992Sep10.120029.6372@eng.ufl.edu> <1992Sep15.042444.3062@midway.uchicago.edu>
- Sender: news@auspex-gw.auspex.com
- Organization: Auspex Systems, Santa Clara
- Lines: 31
- Nntp-Posting-Host: bootme.auspex.com
-
- > We just installed 4.1.2 on a few machines, and after noticing a large
- > amount of .getwd files in /tmp, found that the sticky bit is turned on
- > by default for the /tmp directory. We turned it off.
-
- Track down any binaries you have at your site that were compiled under
- SunOS 4.0[.x], and statically linked with "-lc" (which probably means
- completely statically linked), and get their owners to recompile them,
- if they're owned by somebody at your site (as opposed to being, say,
- some third-party package).
-
- ".getwd" was, as I remember, a cache of "dev_t"/mount-point pairs
- maintained by the SunOS 4.0[.x] version of the "getwd()" routine. The
- SunOS 4.1[.x] "getwd()" routine doesn't maintain that cache; the "mount"
- command maintains it in "/etc/mtab".
-
- Binaries compiled under 4.0[.x], and dynamically linked with "-lc", will
- automatically pick up the 4.1[.x] version of "getwd()" when run, and
- won't create ".getwd" files in "/tmp" (and won't get tripped by other
- problems in the 4.0[.x] version of "getwd()"; as I remember, the 4.0[.x]
- version tended to "stat" lots of things in "/", and if one of them was
- mounted from an NFS server that was down, you lost).
-
- Binaries compiled under 4.0[.x], and *statically* linked with "-lc",
- have the old version of "getwd()" bound into their executable image, and
- don't automatically pick up the 4.1[.x] version when run under 4.1[.x].
-
- (They won't pick up new versions of routines when run under 5.x, either;
- they'll probably blow up completely when run under 5.x.)
-
- If you're getting ".getwd" files in "/tmp" on a 4.1[.x] system, old
- statically-linked programs such as that are to blame....
-