mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests: Fix test for new libcap output.
libcap commit 177cd41803 ("A more compact form for the text
representation of capabilities.") changed the format used by
cap_to_text(3), breaking our test. Change the test to cope. This
will break with older libcap now, but there's not a lot we can do
about it.
This commit is contained in:
@@ -8039,7 +8039,7 @@ If no capabilities are attached to a file, an empty string is returned." };
|
||||
InitScratchFS, Always, TestResultString (
|
||||
[["touch"; "/cap_set_file_0"];
|
||||
["cap_set_file"; "/cap_set_file_0"; "cap_chown=p cap_chown+e"];
|
||||
["cap_get_file"; "/cap_set_file_0"]], "= cap_chown+ep"), [];
|
||||
["cap_get_file"; "/cap_set_file_0"]], "cap_chown=ep"), [];
|
||||
];
|
||||
shortdesc = "set the Linux capabilities attached to a file";
|
||||
longdesc = "\
|
||||
|
||||
Reference in New Issue
Block a user