Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608080 - net-nntp/nzbget-14.1: Could not resolve hostname ErrNo 13, Permission denied
Summary: net-nntp/nzbget-14.1: Could not resolve hostname ErrNo 13, Permission denied
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-02 22:37 UTC by segmentation fault
Modified: 2017-02-21 22:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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