From: Christian Brauner Date: Sat, 13 Feb 2021 20:12:45 +0000 (+0100) Subject: attach: convert to strequal() X-Git-Tag: lxc-5.0.0~290^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8c43357563bc493df281676a7fcb75458e82a83;p=thirdparty%2Flxc.git attach: convert to strequal() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/attach.c b/src/lxc/attach.c index afdfa610c..1143d9e39 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -805,7 +805,7 @@ static int lxc_attach_set_environment(struct attach_context *ctx, return -1; } - if (strcmp(extra_keep[i], "PATH") == 0) + if (strequal(extra_keep[i], "PATH")) path_kept = 1; } }