]> granicus.if.org Git - ipset/commit
Allow saving to/restoring from a file without shell redirection
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 23 May 2012 21:27:42 +0000 (23:27 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Wed, 23 May 2012 21:27:42 +0000 (23:27 +0200)
commit0907c31db34713f0e74b90f725fabb5c91c5f45f
tree16874dabcd4e4ee0cc534fde44009ee7d1df7723
parent4b913c17499935074c6ef33cea79cdb6abd097d1
Allow saving to/restoring from a file without shell redirection

Mathieu Bridon suggested that in some environments where there is no
access to a full shell with input/output redirection, it'd be useful
to read from/write to directly a file (bugzilla #788).

The patch adds the new "-file" option to specify a filename to print
into when listing/saving sets or read from when restoring sets.
Make_global.am
include/libipset/session.h
lib/Makefile.am
lib/libipset.map
lib/session.c
src/ipset.8
src/ipset.c
src/ui.c