]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-user-nic: keep lines from other {users,links}
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 2 Sep 2017 17:44:10 +0000 (19:44 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 4 Sep 2017 16:37:59 +0000 (18:37 +0200)
commiteec13ca1b238344eb80f074e366e1510393cc0c1
tree8f514c5185a4335e30f4cf3d041cced0c3e27f29
parent9597e061fc86375a402a9d82b3dc586dec5a8003
lxc-user-nic: keep lines from other {users,links}

Assume the db contained the following entries:

    chb veth lxcbr0 veth1
    chb veth lxcbr0 veth2
    chb veth lxdbr0 veth3
    chb veth lxdbr0 veth2
    didi veth lxcbr0 veth4

And you request

    cull_entries("chb", "veth", "lxdbr0", "veth3");

lxc-user-nic would wipe any entries that did not match irrespective of whether
they existed or not. Let's fix that.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxc_user_nic.c