[SRU] nmbd shuts down when network disconnected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba |
Fix Released
|
Medium
|
|||
samba (Debian) |
Fix Released
|
Unknown
|
|||
samba (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned | ||
Intrepid |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: samba
There's probably a good reason for this behavior, but it sure is annoying!
Steps to reproduce:
1. Start samba services, ensure nmbd is running. with `ps faux | grep nmbd`
2. `tail -f /var/log/
3. disable networking in nm-applet.
4. the log will eventually say, "reload_interfaces: No subnets to listen to. Shutting down.."
Expected results:
nmbd runs until told otherwise
Here are a few brief discussions(?) elsewhere about this issue:
http://<email address hidden>
http://
http://
Here's a quick 'n dirty potential fix (the samba code just looked way too nice not to try :) but it may have undesirable side effects. I'm not an expert by any means!
--- samba-3.
+++ samba-3.
@@ -566,8 +566,7 @@
/* check for new network interfaces */
- if(reload_
- return;
+ while(reload_
/* free up temp memory */
Related branches
CVE References
Changed in samba: | |
status: | Unknown → Confirmed |
Changed in samba: | |
status: | Confirmed → Fix Released |
Changed in samba: | |
status: | Unknown → Confirmed |
Changed in samba: | |
status: | Fix Released → Confirmed |
Changed in samba: | |
status: | Confirmed → Fix Released |
Changed in samba: | |
status: | Fix Released → Confirmed |
Changed in samba: | |
status: | Confirmed → Fix Released |
Changed in samba (Ubuntu Intrepid): | |
status: | Fix Released → Fix Committed |
Changed in samba: | |
importance: | Unknown → Medium |
The idea is good, the patch not so much :) Busy-waiting for a network to show up is less than optimal. Adding a sleep(5) or something to the loop would make me happy. Could you (or someone else) whip up a new patch with that change in it?