X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Frunas.c;h=ef169d3207903367d6e38e9625b656b210f98d02;hb=0d88e04674ead21c741c6f4ed7fadf666c5e7bce;hp=45aad109a00904804a009e285a8bb829f115add9;hpb=87bbb85674277f43cb219223303c2e76f92c48dd;p=lttng-tools.git diff --git a/src/common/runas.c b/src/common/runas.c index 45aad109a..ef169d320 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -1215,7 +1215,7 @@ int run_as_mkdirat(int dirfd, const char *path, mode_t mode, run_as(dirfd == AT_FDCWD ? RUN_AS_MKDIR : RUN_AS_MKDIRAT, &data, &run_as_ret, uid, gid); errno = run_as_ret._errno; - ret = run_as_ret._errno; + ret = run_as_ret.u.mkdirat.ret; error: return ret; }