git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
667fd04
)
gpo: Open ssh config to write bytes
author
David Mulder
<dmulder@suse.com>
Mon, 19 Apr 2021 19:42:35 +0000
(13:42 -0600)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 20 Apr 2021 07:39:37 +0000
(07:39 +0000)
Reopening the existing config file fails because
we fail to open to write bytes.
Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
python/samba/vgp_openssh_ext.py
patch
|
blob
|
history
diff --git
a/python/samba/vgp_openssh_ext.py
b/python/samba/vgp_openssh_ext.py
index 7a49395151cdc311f6a3f734d8decd0cb6defcb1..44cde4c86274581f120de29dd5f22b2f5b3eb085 100644
(file)
--- a/
python/samba/vgp_openssh_ext.py
+++ b/
python/samba/vgp_openssh_ext.py
@@
-69,7
+69,7
@@
class vgp_openssh_ext(gp_xml_ext):
if not os.path.isdir(cfg_dir):
os.mkdir(cfg_dir, 0o640)
if fname and os.path.exists(fname):
- f = open(fname, 'w')
+ f = open(fname, 'w
b
')
else:
f = NamedTemporaryFile(prefix='gp_',
delete=False,