Skip to content

Commit 426f4fe

Browse files
committed
libpromises/attributes: Fix file_select attributes check
* Remove wrong check on min_size, it's initialized with CF_NOINT and evaluated to true * Add check on group
1 parent a489147 commit 426f4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpromises/attributes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ FileSelect GetSelectConstraints(const EvalContext *ctx, const Promise *pp)
622622
s.issymlinkto = (Rlist *) PromiseGetConstraintAsRval(pp, "issymlinkto", RVAL_TYPE_LIST);
623623

624624
// check if file_result is needed
625-
if ((s.owners) || (s.min_size) || (s.exec_regex) || (s.exec_program) || (s.filetypes)
625+
if ((s.owners) || (s.groups) || (s.exec_regex) || (s.exec_program) || (s.filetypes)
626626
|| (s.name) || (s.path) || (s.issymlinkto) || (s.perms) || (s.bsdflags))
627627
{
628628
entries = true;

0 commit comments

Comments
 (0)