]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix typo I introduced in the bdev change.
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 3 Mar 2014 16:31:03 +0000 (11:31 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 3 Mar 2014 16:31:03 +0000 (11:31 -0500)
When adding the missing return value in Caglar's change (as discussed on
the mailing-list), I set err = -1 instead or ret = -1, causing an
obvious build failure...

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/bdev.c

index 31d1a49e06ce1737d681e01fd8c1675e08f42d1f..49ba8ae674e6ac23846eab7f93f019e380971b65 100644 (file)
@@ -1365,7 +1365,7 @@ static int btrfs_same_fs(const char *orig, const char *new) {
        fd_new = open(new, O_RDONLY);
        if (fd_new < 0) {
                SYSERROR("Error opening new container dir %s", new);
-               err = -1;
+               ret = -1;
                goto out;
        }
        ret = ioctl(fd_new, BTRFS_IOC_FS_INFO, &new_args);