[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#312792: ssh-agent removes socket when it finds it in use



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




Reply to: