]> git.proxmox.com Git - mirror_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>
Sat, 2 Sep 2017 17:44:10 +0000 (19:44 +0200)
commit323113452374c94e976431628a0e4aedad4b80fa
treeaf83f20d310231ed7e350c33714afcab21bef346
parenta92028b27f9a5bf67930942fed616f5a7e71a0d1
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