Univention Bugzilla – Attachment 4700 Details for
Bug 28722
univention.lib.share_restrictions schreibt keine samba/global/options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
share_restrictions.patch
share_restrictions.patch (text/plain), 991 bytes, created by
Arvid Requate
on 2012-10-09 17:05:08 CEST
(
hide
)
Description:
share_restrictions.patch
Filename:
MIME Type:
Creator:
Arvid Requate
Created:
2012-10-09 17:05:08 CEST
Size:
991 bytes
patch
obsolete
>--- /usr/share/pyshared/univention/lib/share_restrictions.py 2012-09-28 13:04:24.000000000 +0200 >+++ ./share_restrictions.py 2012-09-28 13:04:16.000000000 +0200 >@@ -46,7 +46,6 @@ import sys > ucr = ConfigRegistry() > > # global hashes >-include = set() > shares = {} > globals = {} > printers = {} >@@ -343,15 +342,15 @@ class ShareConfiguration( object ): > self.delete() > > # write conf file with global options >- if len( globals ): >+ if len( self.globals ): > fd = file( ShareConfiguration.GLOBAL_CONF, 'w' ) > try: > fd.write("[global]\n") >- fd.write( ''.join( map( lambda item: '%s = %s\n' % item, globals.items() ) ) ) >+ fd.write( ''.join( map( lambda item: '%s = %s\n' % item, self.globals.items() ) ) ) > finally: > fd.close() > >- include.add( 'include = %s' % ShareConfiguration.GLOBAL_CONF ) >+ includes.add( 'include = %s' % ShareConfiguration.GLOBAL_CONF ) > > # write share configs files with options and invalid users > for share in self._shares.values():
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 28722
: 4700