[Bug 276181] Re: gadmin-proftpd crashes on startup

Magnus magnus.loef at gmail.com
Fri Nov 28 21:00:22 UTC 2008


I wrote a little samba-scanner for this. It doesnt handle IPv6 but it should be easily added.
gnome-commander and nautilus doesnt find any hosts but they can be listed.

This is the code, have a look at the FIXME's.
If fixed this will utilize about 3 seconds per network interface to scan for existing samba hosts.

The defualt network connect() timeout seems to be 3 seconds but by default this code uses
the tv structure to limit the connect time. This limitation is bad for slower networks, such as VPN over wireless and such. Therefore one FIXME points to forking each connect(). If this is done then also remove the tv timeout socket option.

IT would be nice to actually see samba hosts after an app has tried to
to list them.

Heres the code for this:
http://mange.dynalias.org/linux/misc/scripts/samba-scanner.c

-- 
gadmin-proftpd crashes on startup
https://bugs.launchpad.net/bugs/276181
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list