HomeFreeBSD

cap_filergs: limit size of the file name

Description

cap_filergs: limit size of the file name

The limit of the name in fileargs is twice the size of the MAXPATH.
The nvlist will not add an element with the longer name.
We can detect at this point that the path is too big, and simple return
the same error as open(2) would.

PR: 239700
Reported by: markj
Tested by: markj
MFC after: 2 weeks

Details

Committed
oshogboAug 7 2019, 7:30 PM
Parents
rS350694: GEOM: Reduce unnecessary log interleaving with sbufs
Branches
Unknown
Tags
Unknown