Skip to content

getlogin returns nil when it's called from a non-login shell#174

Open
ecwws wants to merge 1 commit intoapplicationsonline:masterfrom
ecwws:master
Open

getlogin returns nil when it's called from a non-login shell#174
ecwws wants to merge 1 commit intoapplicationsonline:masterfrom
ecwws:master

Conversation

@ecwws
Copy link

@ecwws ecwws commented Sep 4, 2014

which will cause an

'/lib/ruby/gems/2.1.0/gems/librarian-0.1.2/lib/librarian/environment.rb:206:in `getpwnam': no implicit conversion of nil into String (TypeError)'

ruby-doc recommend using getpwuid in case of getlogin failure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant