]> git.tuebingen.mpg.de Git - paraslash.git/commit
com_setatt(): Allow to specify a file name pattern.
authorAndre Noll <maan@systemlinux.org>
Mon, 22 Jul 2013 20:10:40 +0000 (22:10 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 10 Aug 2013 19:44:33 +0000 (21:44 +0200)
commit73299ebf0a43f0cbf299585f0d5d6ff09e3b93eb
tree3cc8d5a7e00e855bf037aa33d3a076e6ffde678b
parentfd5f94274de04e4dfed9bea8aadac661262d7cca
com_setatt(): Allow to specify a file name pattern.

The help text of the setatt command claims that file name patterns
may be specified as arguments. The text also contains an example which
involves a wildcard pattern. However, this never worked as advertised
since the command actually accepts only full paths.

This commit teaches the command to process the given arguments as
patterns by employing the same pattern matching loop that is also
used by other commands.

In addition we now also send a "no matches" message to the client
in case there was no match. Previously the command stayed silent and
terminated successfully in this case.
aft.c