On 06/20/2013 01:37 PM, Andrew Shadura wrote:
Hello,

On Thu, 20 Jun 2013 13:30:14 -0500
Adam Heath<doo...@brainfood.com>  wrote:

ifquery should probably do the same thing as ifup.  ifup -a *does*
prepend /etc/network to it.

Ifquery is the same ifup which just doesn't run commands. The parsing
part is the same, so it's kind of strange effect. Could you please
double check (I'm not sure I have enough time to dig into that now)?

Ok, you are right, I was wrong.  ifquery/ifup actually do the same thing.

==
root@virt-4:~# strace ifquery foobar 2>&1|grep open
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
open("/etc/network/interfaces", O_RDONLY) = 3
open("vlans", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("vlans/*.intf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/run/network/ifstate", O_RDONLY)  = 3
root@virt-4:~# strace ifup foobar 2>&1|grep open
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
open("/etc/network/interfaces", O_RDONLY) = 3
open("vlans", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("vlans/*.intf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/run/network/ifstate", O_RDWR|O_CREAT|O_APPEND, 0666) = 3
open("/run/network/ifstate", O_RDWR|O_CREAT|O_APPEND, 0666) = 3
open("/run/network/.ifstate.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
open("/run/network/ifstate", O_RDWR|O_CREAT|O_APPEND, 0666) = 3
open("/run/network/.ifstate.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
==

Neither one is pre-pending /etc/network. So, this bug degrades to either making ifupdown pre-pend /etc/network(my recommendation), or fixing interfaces(5) to not show an example with a relative path, and be explicity that relative paths are not supported.






--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to