]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bin/setfacl: Little refactoring, no functional change.
authorarrowd <arrowd@FreeBSD.org>
Mon, 23 Nov 2020 17:00:06 +0000 (17:00 +0000)
committerarrowd <arrowd@FreeBSD.org>
Mon, 23 Nov 2020 17:00:06 +0000 (17:00 +0000)
commit2654ad033a186abaa0784f1878a7dba9783c18d5
treebb2313d56c2c8672156c645e1dc4336abebe6cb9
parent3b4a56860c9a8181d4fbf043065b0a611e2f1120
bin/setfacl: Little refactoring, no functional change.

The acl_from_stat function accepts a stat_t * argument, but only uses its
st_mode field. There is no reason to pass the whole struct, so make it accept
a mode_t and rename the function to acl_from_mode.
Linux has non-standard acl_from_mode function in its libacl, so naming the
function this way may help discovering it during porting efforts.

Reviewed by: tsoome, markj
Approved by: markj
Differential Revision: https://reviews.freebsd.org/D27292
bin/getfacl/getfacl.c