Rev 5302: add initial processing of global section to import in
http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/
Michael Adam
ma at sernet.de
Thu Mar 22 23:05:09 GMT 2007
At http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/
------------------------------------------------------------
revno: 5302
revision-id: ma at sernet.de-20070322230505-f4f4266e1b97446f
parent: ma at sernet.de-20070322165854-f4aa27d9cbfc8d11
committer: Michael Adam <ma at sernet.de>
branch nick: SAMBA_3_0-registry.bzr
timestamp: Fri 2007-03-23 00:05:05 +0100
message:
add initial processing of global section to import
modified:
source/utils/net_conf.c net_conf.c-20070228210606-uywdn1acd043wgvt-1
=== modified file 'source/utils/net_conf.c'
--- a/source/utils/net_conf.c 2007-03-22 16:58:54 +0000
+++ b/source/utils/net_conf.c 2007-03-22 23:05:05 +0000
@@ -439,6 +439,7 @@
TALLOC_CTX *ctx;
struct share_iterator *shares;
struct share_params *share;
+ struct share_params global_share = { GLOBAL_SECTION_SNUM };
ctx = talloc_init("net_conf_import");
@@ -463,7 +464,9 @@
goto done;
}
- /* global params would be handled here... */
+ if (import_process_service(&global_share) != 0) {
+ goto done;
+ }
if (!(shares = share_list_all(ctx))) {
d_fprintf(stderr, "Could not list shares...\n");
@@ -471,7 +474,7 @@
}
while ((share = next_share(shares)) != NULL) {
if (import_process_service(share)!= 0) {
- break;
+ goto done;
}
}
More information about the samba-cvs
mailing list