Univention Bugzilla – Attachment 5420 Details for
Bug 32542
modify after remove corrupts pickle file when moving to a non readable location
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for s4-connector.py
s4con.patch (text/plain), 705 bytes, created by
Tim Petersen
on 2013-09-10 15:37:58 CEST
(
hide
)
Description:
Patch for s4-connector.py
Filename:
MIME Type:
Creator:
Tim Petersen
Created:
2013-09-10 15:37:58 CEST
Size:
705 bytes
patch
obsolete
>--- /home/tpeterse/svn/ucs/ucs-3.1/ucs-3.1-1/services/univention-s4-connector/s4-connector.py 2013-07-10 08:20:26.384673178 +0200 >+++ s4-connector.py 2013-09-10 15:15:42.661718159 +0200 >@@ -71,10 +71,13 @@ > > old_dn=None > if os.path.exists(os.path.join(directory, 'tmp','old_dn')): >- f=open(os.path.join(directory, 'tmp','old_dn'),'r') >- p=cPickle.Unpickler(f) >- old_dn=p.load() >- f.close() >+ if command == 'm': >+ os.unlink(os.path.join(directory, 'tmp','old_dn')) >+ else: >+ f=open(os.path.join(directory, 'tmp','old_dn'),'r') >+ p=cPickle.Unpickler(f) >+ old_dn=p.load() >+ f.close() > if command == 'r': > filename=os.path.join(directory, 'tmp','old_dn') >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32542
: 5420 |
5421