1
0
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:
Andrew Bartlett 2007-09-27 20:45:42 +00:00 committed by Gerald (Jerry) Carter
parent 091961b13b
commit 5093ea1cef

View File

@ -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);