Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
const char *sversion = "INFO/version";
int services = lp_numservices();
int snum;
+ bool ok;
if (!printer_list_parent_init()) {
return false;
}
+ ok = directory_create_or_exist(cache_path("printing"), geteuid(), 0755);
+ if (!ok) {
+ return false;
+ }
+
unlink(cache_path("printing.tdb"));
- mkdir(cache_path("printing"),0755);
/* handle a Samba upgrade */