Bug#717438: pdnsd does no more work in combination with resolvconf

2013-10-04 Thread Jakub Wilk

* Antonio A. M. Kukul mkt...@gmail.com, 2013-09-20, 15:13:

Changing this:

server=$(pdnsd-ctl status|sed -ne '/^Global:$/,/^Server.*:$/s/.*Server ip.*: 
\(.*\)$/\1/p')

to this

server=$(pdnsd-ctl status|sed -ne '/^Global:$/,/^Server.*:$/s/.*Server ip.*: 
\(.*\)$/\1/ip')

in both scripts, it now works fine.

This is because the way of pdnsd-ctl status reports server ip, now it do 
that with the word ip capitalized:


Your analysis is correct, but the fix isn't completely right. This is because 
case-sensitive matching is locale-dependent. For example, in Turkish i and 
I are different letters, so your fix wouldn't work in tr_TR locales.


--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20131004134540.ga8...@jwilk.net



Bug#717438: pdnsd does no more work in combination with resolvconf

2013-09-20 Thread Antonio A. M. Kukul
I need to edit the init script and resolvconf update script of the package
pdnsd to allow a case insensitive match in sed regex (adding /i flag).

Changing this:

server=$(pdnsd-ctl status|sed -ne '/^Global:$/,/^Server.*:$/s/.*Server
ip.*: \(.*\)$/\1/p')

to this

server=$(pdnsd-ctl status|sed -ne '/^Global:$/,/^Server.*:$/s/.*Server
ip.*: \(.*\)$/\1/ip')

in both scripts, it now works fine.

This is because the way of pdnsd-ctl status reports server ip, now it do
that with the word ip capitalized:

Global:
---
Cache size: 2048 kB
Server directory: /var/cache/pdnsd
Scheme file (for Linux pcmcia support): /var/lib/pcmcia/scheme
Server port: 53
Server IP (0.0.0.0=any available one): 127.0.1.1

instead of:

Global:
---
Cache size: 2048 kB
Server directory: /var/cache/pdnsd
Scheme file (for Linux pcmcia support): /var/lib/pcmcia/scheme
Server port: 53
Server ip (0.0.0.0=any available one): 127.0.1.1

I hope it actually helps.



Por favor, evite enviar-me anexos Word, PowerPoint ou Excel. Eu não os sou
capaz de ler.
Agradecerei se você enviá-los no formato OpenDocument (ODF, ISO/IEC 26300)
ou PDF.

*Veja:* http://www.gnu.org/philosophy/no-word-attachments.pt-br.html