move the stat check to the stream open function
-rw-r--r-- 24 .gitignore
-rw-r--r-- 387 Makefile
-rw-r--r-- 4590 cli.c
-rw-r--r-- 2637 err.h
-rw-r--r-- 17805 file.c
-rw-r--r-- 2439 libuci.c
-rw-r--r-- 9730 list.c
-rw-r--r-- 10729 uci.h
-rw-r--r-- 2223 util.c