OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004367 [openssh] regular use crash always 2010-03-23 10:09 2010-04-09 22:12
Reporter matti123 View Status public  
Assigned To yann
Priority normal Resolution fixed  
Status closed  
Summary 0004367: Sshd version OpenSSH_5.4p1 refuses to start on SPARC Solaris 10 zone
Description Today I installed lots of packages from current repository to a new Solaris 10 zone. One of the packages was CSWossh. Version OpenSSH_5.4p1, OpenSSL 0.9.8m 25 Feb 2010 outputs error message "derelativise_path: getcwd: Invalid argument" and refuses to start.

Previous version, OpenSSH_5.3p1, OpenSSL 0.9.8l 5 Nov 2009, which I installed about a week ago runs without any problems.
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007728)
matti123 (reporter)
2010-03-23 11:09

I was able to track the cause to this issue. After uncommenting a following line from sshd_config sshd refuses to start.

#AuthorizedKeysFile .ssh/authorized_keys

So the line should be left in comments. This is a little bit strange thing because above value should be default even if it's commented.
(0007731)
mirch (reporter)
2010-03-24 05:14
edited on: 2010-03-24 05:15

I think the AuthorizedKeysFileis a side effect of the real problem.

The new function derelativise_path() in servconf.c calls getcwd(NULL,0) and using zero for the size argument is unsupported on Solaris. This usage is supported in the GNU libraries though.

(0007744)
yann (manager)
2010-03-25 18:47

Thanks for the diagnosis.

You will find fixed package in my experimental repository:
https://bugzilla.mindrot.org/show_bug.cgi?id=1739 [^]

There is a little bug remaining, .ssh/authorized_keys doesn't work as expected. You should replace it with %h/.ssh/authorized_keys to have the original behavior.

mirch I saw you opened a bug upstream [1], I will post the patch and discuss the issue there.


[1] https://bugzilla.mindrot.org/show_bug.cgi?id=1739 [^]
(0007745)
yann (manager)
2010-03-25 19:26

My mistake, the experimental repository is here:
http://mirror.opencsw.org/experimental.html#yann [^]
(0007752)
yann (manager)
2010-03-25 22:51

I upload new ssh package with a fix for the second issue.

Feedbacks are welcome.
(0007842)
yann (manager)
2010-04-09 22:12

Fixed package released, I am closing this bug.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker