Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 608080

Summary: net-nntp/nzbget-14.1: Could not resolve hostname ErrNo 13, Permission denied
Product: Gentoo Linux Reporter: segmentation fault <segmentation-fault>
Component: Current packagesAssignee: Sven Wegener <swegener>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description segmentation fault 2017-02-02 22:37:39 UTC
nzbget 14.1 spits tons of this message in its error log:

Could not resolve hostname  xxx.yyy.zz ErrNo 13, Permission denied

in its web interface.

Name resolution for this and all other hosts works flawlessly in the terminal and all other applications.


How to reproduce
=============

Configure nzbget in 

/etc/nzbget.conf


Start the nzbget daemon:

nzbget --configfile /etc/nzbget.conf --daemon

Open the web interface in your browser and click on 'Messages' in the toolbar on top.


Reason
======

It is not a resolver issue. It is just bad programming in nzbget...

The problem is that the software does not understand quotes (be it single or double) as string delimiters, but accepts them as part of the string itself. Thus, if you have

Server1.Host='xxx.yyy.zzz'

in your configuration file, the program understands that your server is 'single quote, x, x, x, dot, y,y ,y dot, z, z, z, single quote'. The same is true for (all?)other strings.


Workaround
=========

Avoid single and double quotes around strings in the configuration file. Of course, this will be a problem with blanks (e.g. in passwords...), but that's the only way around it... :roll:
Comment 1 Sven Wegener gentoo-dev 2017-02-21 22:25:58 UTC
If you want this behaviour changed, please file a request upstream: https://github.com/nzbget/nzbget/issues