--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: ssh-agent removes socket when it finds it in use
- From: Florian Zumbiehl <florz@gmx.de>
- Date: Fri, 10 Jun 2005 08:32:09 +0200
- Message-id: <E1Dgd3p-0004Ti-00@florz.florz.dyndns.org>
Package: ssh
Version: 1:3.8.1p1-8.sarge.4
Severity: important
When specifying a socket to use on the command line of ssh-agent,
if that socket is already in use, that is reported as an error
and subsequently, just before quitting, it is changed to not being
in use anymore (that is, it's unlinked):
| bind(3, {sa_family=AF_FILE, path="blah"}, 110) = -1 EADDRINUSE (Address already in use)
| dup(2) = 4
| fcntl64(4, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
| fstat64(4, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 7), ...}) = 0
| ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
| old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40018000
| _llseek(4, 0, 0xbffffa00, SEEK_CUR) = -1 ESPIPE (Illegal seek)
| write(4, "bind: Address already in use\n", 29bind: Address already in use
| ) = 29
| close(4) = 0
| munmap(0x40018000, 4096) = 0
| unlink("blah") = 0
| exit_group(1) = ?
Either it should be unlinked and then recreated, or it should be left
alone (I'd prefer the latter, to facilitate an easy "one agent for all
sessions"-setup), but as it's now, it certainly is a pretty silly
behaviour.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.31
Locale: LANG=C, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Versions of packages ssh depends on:
ii adduser 3.63 Add and remove users and groups
ii debconf 1.4.30.13 Debian configuration management sy
ii dpkg 1.10.28 Package maintenance system for Deb
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libpam-modules 0.76-22 Pluggable Authentication Modules f
ii libpam-runtime 0.76-22 Runtime support for the PAM librar
ii libpam0g 0.76-22 Pluggable Authentication Modules l
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii libwrap0 7.6.dbs-8 Wietse Venema's TCP wrappers libra
ii zlib1g 1:1.2.2-4 compression library - runtime
-- debconf information excluded
--- End Message ---
--- Begin Message ---
Version: 1:4.3p2-9
On Thu, Apr 19, 2007 at 11:37:30PM +0200, Florian Zumbiehl wrote:
> Hi,
>
> > #312792 - ssh-agent removes socket when it finds it in use
> > http://bugs.debian.org/312792
> >
> > This problem seems to be resolved, no?
>
> Seems so, yes.
>
> :wq ;-)
Ha. I just wrote a "bugmail" script, which I hope to use to send lots
of BTS mail in the immediate future, following up to bugs against
packages with many, many ancient (hopefully out-of-date),
not-followed-up bugs reports. mutt hadn't been sending mail while I
was testing, since the file wasn't modified. But when I tested how
quickly I could send the mail, with echo ':q!'|, it did send it. (I
pull the subject from the title of the BTS).
Thanks
Justin
--
:wq!
--- End Message ---