]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tetss: use stat(1) in mount/set_ugid_mode
authorKarel Zak <kzak@redhat.com>
Mon, 24 Oct 2022 11:02:26 +0000 (13:02 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 24 Oct 2022 11:02:26 +0000 (13:02 +0200)
commitfb34edff70665f6c2fde319fd7a71d7953ce74e3
treedabdb9a573bd0c66b668122d5628a542a4306972
parentb0498dd6c8e471d3e4fe7f043e5acf96ef553994
tetss: use stat(1) in mount/set_ugid_mode

The permissions output from ls(1) is not portable. The output
contains '.' when SELinux context is enabled for the directory.

stat(1) also provides full control over formatting, so we do not need to
parse ls(1) output.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/mount/set_ugid_mode