aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2013-07-26 14:25:58 +0000
committerAndriy Gapon <avg@FreeBSD.org>2013-07-26 14:25:58 +0000
commit8e94193e58657c5b88b9d0e9049b2db7b5664e1e (patch)
tree5d8a84c97d82b21a8b881f446dcd99c15b256286 /cddl
parentbd376402de5e737818448a862161d3affb29b48e (diff)
downloadsrc-8e94193e58657c5b88b9d0e9049b2db7b5664e1e.tar.gz
src-8e94193e58657c5b88b9d0e9049b2db7b5664e1e.zip
make path matching in devfs rules consistent and sane (and safer)
Before this change path matching had the following features: - for device nodes the patterns were matched against full path - in the above case '/' in a path could be matched by a wildcard - for directories and links only the last component was matched So, for example, a pattern like 're*' could match the following entries: - re0 device - responder/u0 device - zvol/recpool directory Although it was possible to work around this behavior (once it was spotted and understood), it was very confusing and contrary to documentation. Now we always match a full path for all types of devfs entries (devices, directories, links) and a '/' has to be matched explicitly. This behavior follows the shell globbing rules. This change is originally developed by Jaakko Heinonen. Many thanks! PR: kern/122838 Submitted by: jh MFC after: 4 weeks
Notes
Notes: svn path=/head/; revision=253677
Diffstat (limited to 'cddl')
0 files changed, 0 insertions, 0 deletions