First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 108464
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Roy Marples (RETIRED) <uberlord@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christian Roessner <info@roessner-net.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ifplugd.diff ifplugd.diff text/plain Christian Roessner 2005-10-08 02:25 0000 652 bytes Details
ifplugd.patch correct fix for ifplugd patch Roy Marples (RETIRED) 2005-10-09 08:04 0000 1.15 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 108464 depends on: Show dependency tree
Show dependency graph
Bug 108464 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-10-08 02:24 0000
Hi,

I have fixed some bugs in /etc/init.d/ifplugd (=sys-apps/ifplugd-0.28-r2)

Have a nice day

Christian


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

------- Comment #1 From Christian Roessner 2005-10-08 02:25:13 0000 -------
Created an attachment (id=70133) [edit]
ifplugd.diff

------- Comment #2 From Roy Marples (RETIRED) 2005-10-09 06:30:05 0000 -------
The is_set function isn't broken, your patch appears to break it.....

SIGQUIT is signal 3 - SIGQUIT is easier to read, why the need to change to 3?

So why is this needed? Until a good argument can be given, I'll mark it as WONTFIX

------- Comment #3 From Christian Roessner 2005-10-09 07:37:04 0000 -------
First thing: is_set does not work here on amd64! If using == yes, then the
options --no-auto and --no-beep are not set (-ab).

Second: On both my machines (notebook and amd64) the init script does not
stop/restart, because portage tells me it needs a signal name or a signal
number. You used SIGQUIT and therefor it seems, portage is broken here. But
using a real number fixes this. So this is not really a bug in ifplugd but maybe
in start-stop-daemon (is this portage or baselayout??)

So if you do not change both things, the ifplugd stuff is broken on nearly all
~arch systems I (would) bet

I put some einfo in the is_set function to see the result

einfo "$1 $2 $3" and I got numbers 0/1. Not boolean words. So I changed it to -eq.

Hope you will test this. ;-)

Thanks anyway

Christian

------- Comment #4 From Roy Marples (RETIRED) 2005-10-09 08:04:44 0000 -------
Created an attachment (id=70223) [edit]
correct fix for ifplugd

OK, the is_set function does work - the error is assigning to an invalid iargs
variable.

The SIGQUIT option works for baselayout-1.12.0_pre* as we intercept
start-stop-daemon calls, but you're correct as 3 is needed for baselayout<1.12

Test this patch and see if it fixes your issues.

------- Comment #5 From Christian Roessner 2005-10-09 13:34:41 0000 -------
It works, although I don

------- Comment #6 From Christian Roessner 2005-10-09 13:34:41 0000 -------
It works, although I don“t understand the changes. But the patch is okay.

Thanks

Christian

------- Comment #7 From Roy Marples (RETIRED) 2005-10-10 00:39:43 0000 -------
Fixed in ifplugd-0.28-r3

First Last Prev Next    No search results available      Search page      Enter new bug