Skip to content

Commit

Permalink
libselinux: align SELABEL_OPT_DIGEST usage with man page
Browse files Browse the repository at this point in the history
According to selabel_opn(3) a non-null value for this option enables the
generation of an SHA1 digest of the spec files loaded as described in
selabel_digest(3).

Signed-off-by: Christian Göttsche <[email protected]>
Acked-by: James Carter <[email protected]>
  • Loading branch information
cgzones authored and jwcart2 committed Jan 25, 2024
1 parent 1dd0433 commit 7f92577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libselinux/src/label.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static inline struct selabel_digest *selabel_is_digest_set

while (n--) {
if (opts[n].type == SELABEL_OPT_DIGEST &&
opts[n].value == (char *)1) {
!!opts[n].value) {
digest = calloc(1, sizeof(*digest));
if (!digest)
goto err;
Expand Down

0 comments on commit 7f92577

Please sign in to comment.