34 |
|
} |
35 |
|
} |
36 |
|
|
37 |
+ |
if (debug) cerr << "folders = {\n"; |
38 |
+ |
|
39 |
|
for (map<string, Folder>::iterator itor = folders.begin(); itor |
40 |
|
!= folders.end(); itor++) |
41 |
|
{ |
42 |
+ |
if (debug) cerr << " " << itor->first << " = {\n" |
43 |
+ |
<< " local = " << itor->second.local << "\n" |
44 |
+ |
<< " remote = " << itor->second.remote << "\n" |
45 |
+ |
<< " }\n"; |
46 |
+ |
|
47 |
|
make(itor->first, itor->second.local); |
48 |
|
} |
49 |
+ |
|
50 |
+ |
if (debug) cerr << "}\n"; |
51 |
|
} |
52 |
|
|
53 |
|
void Maker::samba() |
75 |
|
|
76 |
|
ipstream smbclient(config.smbclient, args); |
77 |
|
|
78 |
+ |
if (debug) cerr << "smbclient = {\n"; |
79 |
+ |
|
80 |
|
if (connect(smbclient)) |
81 |
|
{ |
82 |
|
for (unsigned index = 0; index < 2; index++) |
95 |
|
cerr << program << ": Connection to " << host << " failed\n"; |
96 |
|
} |
97 |
|
|
98 |
+ |
if (debug) cerr << "}\n"; |
99 |
+ |
|
100 |
|
smbclient.close(); |
101 |
|
|
102 |
|
unlink(credentials); |
152 |
|
|
153 |
|
if (share[end] == '$') continue; |
154 |
|
|
155 |
< |
// |
155 |
> |
if (folders.find(share) == folders.end()) |
156 |
> |
{ |
157 |
> |
folders.insert(pair<string, Folder>(share, regular)); |
158 |
> |
} |
159 |
|
} |
160 |
|
} |
161 |
|
|