Bug#395432: openssh-client: ssh-agent ignores TMP env variable for placing its temporary files

2006-10-28 Thread Greg Norris
On Fri, Oct 27, 2006 at 09:19:14AM +1000, Alexander Samad wrote:
 it should be looking at TMP or TMPDIR

   [EMAIL PROTECTED] dir `which ssh-agent`
   -rwxr-sr-x 1 root ssh 65836 Oct 24 16:06 /usr/bin/ssh-agent

Since ssh-agent has the setgid bit set, it won't even see the TMPDIR 
variable... this gets stripped out by ld-linux. The TMP variable will 
remain, however.


signature.asc
Description: Digital signature


Bug#395432: openssh-client: ssh-agent ignores TMP env variable for placing its temporary files

2006-10-26 Thread Alexander Samad
Package: openssh-client
Version: 1:4.3p2-5
Severity: normal


When not using -a option on ssh-agent it places temporary files in /tmp
it totally ignores TMP env variable

if (agentsocket == NULL) {
/* Create private directory for agent socket */
strlcpy(socket_dir, /tmp/ssh-XX, sizeof
socket_dir);
if (mkdtemp(socket_dir) == NULL) {
perror(mkdtemp: private socket dir);
exit(1);
}

it should be looking at TMP or TMPDIR

Alex


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (250, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-1-amd64
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)

Versions of packages openssh-client depends on:
ii  adduser 3.97 Add and remove users and groups
ii  debconf [debconf-2. 1.5.6Debian configuration management sy
ii  dpkg1.13.22  package maintenance system for Deb
ii  libc6   2.3.6.ds1-4  GNU C Library: Shared libraries
ii  libcomerr2  1.39-1   common error description library
ii  libedit22.9.cvs.20050518-2.2 BSD editline and history libraries
ii  libkrb531.4.4-3  MIT Kerberos runtime libraries
ii  libncurses5 5.5-3Shared libraries for terminal hand
ii  libselinux1 1.30.28-2SELinux shared libraries
ii  libssl0.9.8 0.9.8c-3 SSL shared libraries
ii  passwd  1:4.0.18.1-3 change and administer password and
ii  zlib1g  1:1.2.3-13   compression library - runtime

openssh-client recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]