From 89997783735826dd015d4d6295e365288318b110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= Date: Tue, 12 Mar 2019 20:15:16 +0100 Subject: [PATCH] pysmbd: restore original umask to saved umask after umask(0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://bugzilla.samba.org/show_bug.cgi?id=13834 Signed-off-by: Björn Baumbach --- source3/smbd/pysmbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index cd6ff1f53c5..27731bd6907 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -171,6 +171,8 @@ static NTSTATUS init_files_struct(TALLOC_CTX *mem_ctx, *_fsp = fsp; + umask(saved_umask); + return NT_STATUS_OK; } -- 2.19.2