cc wierdness

From: Becki Kain <beckers_at_josephus.furph.com>
Date: Fri, 27 Mar 1998 17:58:05 -0500 (EST)

This is under DU 4.0. The question is why is cc trying to write to the
current directory when TMPDIR is set? gcc 2.7.2.2 can compile this code
and the man page for cc states that this is what TMPDIR is to be used for.
Any ideas?

thanks

beckers

running as non-root:

% gcc -o /usr/tmp/chkport /usr/tmp/chkport.c
% cc -o /usr/tmp/chkport /usr/tmp/chkport.c
cc: Severe: Permission denied
... file is 'chkport.o'
% pwd
/usr/var/tmp/cdrom/unix
% ls -ld .
drwxr-xr-x 2 root system 512 Mar 27 16:35 ./
% ls -ld ..
drwxr-xr-x 3 root system 512 Feb 5 17:44 ../
% setenv TMPDIR /usr/tmp
% cc -o /usr/tmp/chkport /usr/tmp/chkport.c
cc: Severe: Permission denied
... file is 'chkport.o'
Received on Fri Mar 27 1998 - 23:55:19 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT