Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Bugs

[Bug 1628] /var/run/sshd.pid file collisions...

 

 

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Nov 19, 2009, 4:34 PM

Post #1 of 9 (1256 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions...

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

Damien Miller <djm [at] mindrot> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm [at] mindrot,
| |tim [at] multitalents

--- Comment #1 from Damien Miller <djm [at] mindrot> 2009-11-20 11:34:57 EST ---
Tim, you know more about SMF that I do - could you please take a look
at this?

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Nov 19, 2009, 9:38 PM

Post #2 of 9 (1187 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions... [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

--- Comment #2 from Tim Rice <tim [at] multitalents> 2009-11-20 16:38:51 EST ---
Created an attachment (id=1726)
--> (https://bugzilla.mindrot.org/attachment.cgi?id=1726)
Use PidFile if set in sshd_config

This is not really a SMF issue. The problem is our start/stop script
does not know if PidFile is set in sshd_config.

The attached patch would be one way to address this issue.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Nov 19, 2009, 9:57 PM

Post #3 of 9 (1186 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions... [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

--- Comment #3 from Damien Miller <djm [at] mindrot> 2009-11-20 16:57:52 EST ---
(From update of attachment 1726)
>--- openssh/opensshd.init.in.old 2006-01-31 08:00:37.000000000 -0800
>+++ openssh/opensshd.init.in 2009-11-19 21:27:44.657360000 -0800
>@@ -14,6 +14,8 @@
>
> SSHD=$prefix/sbin/sshd
> PIDFILE=$piddir/sshd.pid
>+PidFile=`grep "^PidFile " ${sysconfdir}/sshd_config | awk '{print $2}'`

I don't think this will cope '=' as a config separator, which is legal
sshd_config syntax:

PidFile=/somewhere/sshd.pid

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Nov 20, 2009, 5:03 PM

Post #4 of 9 (1171 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions... [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

--- Comment #4 from Tim Rice <tim [at] multitalents> 2009-11-21 12:03:21 EST ---
Created an attachment (id=1730)
--> (https://bugzilla.mindrot.org/attachment.cgi?id=1730)
take 2

(In reply to comment #3)
> (From update of attachment 1726 [details])

> >+PidFile=`grep "^PidFile " ${sysconfdir}/sshd_config | awk '{print $2}'`
>
> I don't think this will cope '=' as a config separator, which is legal
> sshd_config syntax:
>
> PidFile=/somewhere/sshd.pid

Good point. This one will.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Nov 20, 2009, 5:09 PM

Post #5 of 9 (1168 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions... [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

--- Comment #5 from Tim Rice <tim [at] multitalents> 2009-11-21 12:09:17 EST ---
Created an attachment (id=1731)
--> (https://bugzilla.mindrot.org/attachment.cgi?id=1731)
take 3

Oh rats. take2 handled all cases except the one djm mentioned.

OK, this one really works.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Nov 20, 2009, 5:10 PM

Post #6 of 9 (1173 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions... [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

Tim Rice <tim [at] multitalents> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #1726|0 |1
is obsolete| |

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Nov 20, 2009, 5:10 PM

Post #7 of 9 (1174 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions... [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

Tim Rice <tim [at] multitalents> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #1730|0 |1
is obsolete| |

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Nov 20, 2009, 6:32 PM

Post #8 of 9 (1169 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions... [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

Darren Tucker <dtucker [at] zip> changed:

What |Removed |Added
----------------------------------------------------------------------------
Attachment #1731| |ok+
Flag| |

--- Comment #6 from Darren Tucker <dtucker [at] zip> 2009-11-21 13:32:54 EST ---
(From update of attachment 1731)
looks good, do it!

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs


bugzilla-daemon at bugzilla

Nov 20, 2009, 7:37 PM

Post #9 of 9 (1170 views)
Permalink
[Bug 1628] /var/run/sshd.pid file collisions... [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1628

Tim Rice <tim [at] multitalents> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED

--- Comment #7 from Tim Rice <tim [at] multitalents> 2009-11-21 14:37:22 EST ---
(In reply to comment #6)
> (From update of attachment 1731 [details])
> looks good, do it!

OK, I've commited the patch. It should show up in a snapshot shortly
and
will be in 5.4. Marking this bug resolved.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.