Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 7598] New: nasty bug in install_services

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT metalab.unc.edu
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 7598] New: nasty bug in install_services
  • Date: Tue, 2 Nov 2004 12:19:28 -0500

http://bugs.sourcemage.org/show_bug.cgi?id=7598

Summary: nasty bug in install_services
Product: Sorcery
Version: Test
Platform: Other
OS/Version: other
Status: NEW
Severity: major
Priority: P2
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: a_bouter AT ezrs.com


the install_services function in libgrimoire isn't working properly.
atm it replaces the entire contents of /etc/services with the last line which
was to be added.

this line:
explode "$LINE" '[\t ]+' tmp
fails, for dnsmasq it produces the following debug output:
install_services(24011): LINE : 'domain 53/tcp'
tmp[0](24011): tmp 0 / 1 / 2 : 'domain 53/tcp' / '' / ''

thereby causing this line:
tmp=$( grep -ve "${tmp[0]}.*${tmp[1]//\//[/]}" $t_services )
to fail, clearing $tmp

after that the contents of /etc/services are cleared by:
echo "$tmp" > $t_services

and the following line places the last line to be added into services.
echo "$LINE" >> $t_services

During testing i found out it works replacing the explode line by:
explode "$LINE" '[\t ]+' "tmp"

it still puts everything in tmp[0], but will keep the other contents
of services.

btw, i run test sorcery with the test grimoire



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 7598] New: nasty bug in install_services, bugzilla-daemon, 11/02/2004

Archive powered by MHonArc 2.6.24.

Top of Page