Message ID | 20210718190658.61621-4-ebiggers@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | xfstests: fscrypt no-key name updates | expand |
diff --git a/common/encrypt b/common/encrypt index 766a6d81..f90c4ef0 100644 --- a/common/encrypt +++ b/common/encrypt @@ -935,5 +935,8 @@ _filter_nokey_filenames() { local dir=$1 - sed "s|${dir}${dir:+/}[A-Za-z0-9+,_]\+|${dir}${dir:+/}NOKEY_NAME|g" + # The no-key name format is a filesystem implementation detail that has + # varied slightly over time. Just look for names that consist entirely + # of characters that have ever been used in such names. + sed "s|${dir}${dir:+/}[A-Za-z0-9+,_-]\+|${dir}${dir:+/}NOKEY_NAME|g" }