[cgfsng] show wrong errno
[cgfsng] show wrong errno

lxc_cgroup_set_data: h = get_hierarchy(controller);
if h is NULL, now errno is old, it donot set new one.
And then,
cgfsng_setup_limits:

    if (lxc_cgroup_set_data(cg->subsystem, cg->value, d)) {
		if (do_devices && (errno == EACCES ||
			errno == EPERM)) {
			WARN("Error setting %s to %s for %s",
				cg->subsystem, cg->value,
				d->name);
			continue;
		}
		SYSERROR("Error setting %s to %s for
			 %s",
			 cg->subsystem, cg->value,
			 d->name);
		goto out;
	}

SYSERROR will show old errno, make me confused.

Signed-off-by: duguhaotian <6cc0ed4aed7efb21f4959803e7cf974793564e7f@gmail.com>

ss1h2a3tw/lxc,hallyn/lxc,ss1h2a3tw/lxc,thmo/lxc,hallyn/lxc,caglar10ur/lxc,hallyn/lxc,thmo/lxc,caglar10ur/lxc,ss1h2a3tw/lxc,caglar10ur/lxc,thmo/lxc