diff options
author | Ruediger Meier | 2018-06-25 14:01:21 +0200 |
---|---|---|
committer | Ruediger Meier | 2018-06-25 16:49:00 +0200 |
commit | 77845f7bd75cc1f1ac69bfae38a78aa81ae3fb60 (patch) | |
tree | 495e14937f2ba3fea963d913ee58252b044112f5 /sys-utils/chmem.c | |
parent | docs: update TODO (diff) | |
download | kernel-qcow2-util-linux-77845f7bd75cc1f1ac69bfae38a78aa81ae3fb60.tar.gz kernel-qcow2-util-linux-77845f7bd75cc1f1ac69bfae38a78aa81ae3fb60.tar.xz kernel-qcow2-util-linux-77845f7bd75cc1f1ac69bfae38a78aa81ae3fb60.zip |
ipcs,chmem: fix access() usage
Some mistakes happened lately when switching from path_exist()
to ul_path_access(). See f09a98de and 8ca31279.
This caused ipcs test failures when running i386 binaries on x86_64
hosts, because the syscall fallback was always used. That's why I
reviewed all similar changes and found another one in chmem.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'sys-utils/chmem.c')
-rw-r--r-- | sys-utils/chmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/chmem.c b/sys-utils/chmem.c index e5eab096a..4a4439a22 100644 --- a/sys-utils/chmem.c +++ b/sys-utils/chmem.c @@ -428,7 +428,7 @@ int main(int argc, char **argv) /* The valid_zones sysfs attribute was introduced with kernel 3.18 */ - if (ul_path_access(desc->sysmem, F_OK, "memory0/valid_zones")) + if (ul_path_access(desc->sysmem, F_OK, "memory0/valid_zones") == 0) desc->have_zones = 1; else if (zone) warnx(_("zone ignored, no valid_zones sysfs attribute present")); |