mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r25383: Patch from Amin Azez <azez@ufomechanic.net> to give better message
when a template file is missing. Andrew Bartlett
This commit is contained in:
parent
091961b13b
commit
5093ea1cef
@ -355,6 +355,11 @@ function setup_file(template, message, fname, subobj)
|
||||
var f = fname;
|
||||
var src = lp.get("setup directory") + "/" + template;
|
||||
|
||||
if (! sys.stat(src)) {
|
||||
message("Template file not found: %s\n",src);
|
||||
assert(0);
|
||||
}
|
||||
|
||||
sys.unlink(f);
|
||||
|
||||
var data = sys.file_load(src);
|
||||
|
Loading…
Reference in New Issue
Block a user