enforce sane readdir usage
authorEric Blake <eblake@redhat.com>
Mon, 21 Apr 2014 22:33:15 +0000 (16:33 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 28 Apr 2014 23:52:46 +0000 (17:52 -0600)
commiteae00fb59a8e126d1cdc942c46e26c5b43c2be8b
tree468e15827aa624f6e25c8913bffd8edee67316ab
parenta4315234445a96272f137a7bba8d4921537eb946
enforce sane readdir usage

Now that all clients have been adjusted, ensure that no future
misuse of readdir is introduced into the code base.

* cfg.mk (sc_prohibit_readdir): New rule.
* src/util/virfile.c (virDirRead): Exempt the wrapper.

Signed-off-by: Eric Blake <eblake@redhat.com>
cfg.mk
src/util/virfile.c