File: basename.ferm

package info (click to toggle)
ferm 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,140 kB
  • sloc: perl: 2,839; sh: 126; makefile: 120
file content (8 lines) | stat: -rw-r--r-- 156 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
# test for @basename()

@def $a = '/tmp/bla/foo';

chain INPUT {
    mod comment comment @basename($a) ACCEPT;
    mod comment comment @dirname($a) DROP;
}