summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/common.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2013-07-26 14:25:58 +0000
committeravg <avg@FreeBSD.org>2013-07-26 14:25:58 +0000
commit4b4c561bbf9e16f81ad2235acb49b805fea3263c (patch)
tree5d8a84c97d82b21a8b881f446dcd99c15b256286 /lib/libfetch/common.c
parenteb8dc560e4774a1c127fb60c9427d40b25f03b25 (diff)
downloadFreeBSD-src-4b4c561bbf9e16f81ad2235acb49b805fea3263c.zip
FreeBSD-src-4b4c561bbf9e16f81ad2235acb49b805fea3263c.tar.gz
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
Diffstat (limited to 'lib/libfetch/common.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud