[comp.unix.questions] ln -s /var/tmp /tmp

kehoe@scotty.dccs.upenn.edu (Brendan Kehoe) (08/20/90)

 My / partition has about 1.5 megs available on it..any reason why I shouldn't
redirect /tmp to /usr/tmp (which in turn goes to /var/tmp on my Sun) with a
symbolic link, so that there'll never be problems w/ storage? Will anything
die if /tmp is a link?
 Thanks..

Brendan Kehoe | Soon: brendan@cs.widener.edu
For now: kehoe@scotty.dccs.upenn.edu | Or: bkehoe@widener.bitnet

meissner@osf.org (Michael Meissner) (08/20/90)

In article <28623@netnews.upenn.edu> kehoe@scotty.dccs.upenn.edu
(Brendan Kehoe) writes:

|  My / partition has about 1.5 megs available on it..any reason why I shouldn't
| redirect /tmp to /usr/tmp (which in turn goes to /var/tmp on my Sun) with a
| symbolic link, so that there'll never be problems w/ storage? Will anything
| die if /tmp is a link?
|  Thanks..

Some (all?) versions of cp use lstat instead of stat to determine if
the last argument is a directory, and fail if /tmp is a symlink.
--
Michael Meissner	email: meissner@osf.org		phone: 617-621-8861
Open Software Foundation, 11 Cambridge Center, Cambridge, MA, 02142

Do apple growers tell their kids money doesn't grow on bushes?

kaul@icarus.eng.ohio-state.edu (Rich Kaul) (08/20/90)

In article <MEISSNER.90Aug20102144@osf.osf.org> meissner@osf.org (Michael Meissner) writes:
   Some (all?) versions of cp use lstat instead of stat to determine if
   the last argument is a directory, and fail if /tmp is a symlink.

Some.  We run a Sun 3/180 running SunOS 3.5 with /tmp symlinked to
another disk without problems.
-=-
Rich Kaul                         | It wouldn't be research if we
kaul@icarus.eng.ohio-state.edu    | knew what we were doing.