From 843c373d008cd51940f08a7a291976b6e80a5fbf Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Mon, 18 May 2015 20:40:11 +0300 Subject: waf: always close cross answers file When configuring samba for cross-compilation using the cross-answers file, the file is not closed in a couple of cases - fix that. Signed-off-by: Uri Simchoni Reviewed-by: Andrew Bartlett Reviewed-by: Alexander Bokovoy --- buildtools/wafsamba/samba_cross.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'buildtools') diff --git a/buildtools/wafsamba/samba_cross.py b/buildtools/wafsamba/samba_cross.py index 3838e34ec48..877ead85815 100644 --- a/buildtools/wafsamba/samba_cross.py +++ b/buildtools/wafsamba/samba_cross.py @@ -58,8 +58,10 @@ def cross_answer(ca_file, msg): f.close() return ANSWER_FAIL elif ans[0] == '"': + f.close() return (0, ans.strip('"')) elif ans[0] == "'": + f.close() return (0, ans.strip("'")) else: m = re.match('\(\s*(-?\d+)\s*,\s*\"(.*)\"\s*\)', ans) -- cgit v1.2.1