~ubuntu-branches/ubuntu/intrepid/samba/intrepid-updates

« back to all changes in this revision

Viewing changes to debian/patches/fhs-filespaths.patch

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-06-02 09:01:46 UTC
  • mfrom: (0.25.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080602090146-92ur4nx39ccg708r
Tags: 2:3.0.30-2ubuntu1
* Merge from debian unstable, remaining changes:
  * debian/patches/VERSION.patch
    - set SAMABA_VERSION_VENDOR_SUFFIX to Ubuntu
  * debian/smb.conf
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] shares, and a comment about
      "value users = %S to show users how to restrict access to 
      \\server\useranem to only username.
    - Add map to guest = Bad user, maps bad username to guest access.
      (LP: #32067)
  * debian/samba-common.postinst:
    - Fix upgrade from a first installation done with feisty, edgy, or dapper.
      (LP: #201059)
    - When populating the new sambashare group, it's not an error if the user
      simply doesn't exist; test for this case and the install continue 
      instead of aborting. (LP: #206036)
  * debian/smba-common.config:
    - do not change priority to HIGH if dhclient3 is installed
    - used priority medium instead of hight for the workgroup question
  * debian/winbind.files
    - insclude additional files
  * debian/patches/fix-documentation.patch:
    - fix typos in net(8) and smb.conf(5) man pages
  * debian/mksambapasswd.awk:
    - Don't add user with UID less than 1000 to smbpasswd.
  * debian/samba.init:
    - add 'status' option for LSB conformance.
  * Updated control version.
  * Dropped Changes:
    - Dropped debian/patches/fix-smbprinting-os2.patch. Accepted upstream.
    - Dropped debian/patches/fix-documentation.patch. Accepted upstream.
     

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
      grep -r lp_lockdir source/ | grep -vE \
46
46
         '%s/smb_(tmp_)*krb5|source/(lib/util|param/loadparm|dynconfig|utils/testparm)\.c|WINBINDD_PRIV_SOCKET_SUBDIR|(directory_exist|mkdir)\(lp_lockdir\(\),|koplock\.%d|%s/sync\.%d'
47
47
 
48
 
Index: samba-3.0.28a/source/intl/lang_tdb.c
 
48
Index: samba-3.0.29/source/intl/lang_tdb.c
49
49
===================================================================
50
 
--- samba-3.0.28a.orig/source/intl/lang_tdb.c
51
 
+++ samba-3.0.28a/source/intl/lang_tdb.c
 
50
--- samba-3.0.29.orig/source/intl/lang_tdb.c
 
51
+++ samba-3.0.29/source/intl/lang_tdb.c
52
52
@@ -131,7 +131,7 @@
53
53
        if (!lang) 
54
54
                return True;
58
58
        if (stat(msg_path, &st) != 0) {
59
59
                /* the msg file isn't available */
60
60
                DEBUG(10, ("lang_tdb_init: %s: %s\n", msg_path, 
61
 
Index: samba-3.0.28a/source/lib/util_unistr.c
 
61
Index: samba-3.0.29/source/lib/util_unistr.c
62
62
===================================================================
63
 
--- samba-3.0.28a.orig/source/lib/util_unistr.c
64
 
+++ samba-3.0.28a/source/lib/util_unistr.c
 
63
--- samba-3.0.29.orig/source/lib/util_unistr.c
 
64
+++ samba-3.0.29/source/lib/util_unistr.c
65
65
@@ -88,11 +88,11 @@
66
66
        }
67
67
        initialised = 1;
85
85
        if (valid_file) {
86
86
                valid_table = valid_file;
87
87
                mapped_file = 1;
88
 
Index: samba-3.0.28a/source/libsmb/samlogon_cache.c
 
88
Index: samba-3.0.29/source/libsmb/samlogon_cache.c
89
89
===================================================================
90
 
--- samba-3.0.28a.orig/source/libsmb/samlogon_cache.c
91
 
+++ samba-3.0.28a/source/libsmb/samlogon_cache.c
 
90
--- samba-3.0.29.orig/source/libsmb/samlogon_cache.c
 
91
+++ samba-3.0.29/source/libsmb/samlogon_cache.c
92
92
@@ -34,7 +34,7 @@
93
93
 BOOL netsamlogon_cache_init(void)
94
94
 {
107
107
                                   WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE,
108
108
                                   TDB_DEFAULT, O_RDWR, 0600);
109
109
                if (!tdb) {
110
 
Index: samba-3.0.28a/source/nmbd/nmbd_serverlistdb.c
 
110
Index: samba-3.0.29/source/nmbd/nmbd_serverlistdb.c
111
111
===================================================================
112
 
--- samba-3.0.28a.orig/source/nmbd/nmbd_serverlistdb.c
113
 
+++ samba-3.0.28a/source/nmbd/nmbd_serverlistdb.c
 
112
--- samba-3.0.29.orig/source/nmbd/nmbd_serverlistdb.c
 
113
+++ samba-3.0.29/source/nmbd/nmbd_serverlistdb.c
114
114
@@ -325,7 +325,7 @@
115
115
 
116
116
        updatecount++;
120
120
        trim_char(fname,'\0' ,'/');
121
121
        pstrcat(fname,"/");
122
122
        pstrcat(fname,SERVER_LIST);
123
 
Index: samba-3.0.28a/source/nmbd/nmbd_winsserver.c
 
123
Index: samba-3.0.29/source/nmbd/nmbd_winsserver.c
124
124
===================================================================
125
 
--- samba-3.0.28a.orig/source/nmbd/nmbd_winsserver.c
126
 
+++ samba-3.0.28a/source/nmbd/nmbd_winsserver.c
 
125
--- samba-3.0.29.orig/source/nmbd/nmbd_winsserver.c
 
126
+++ samba-3.0.29/source/nmbd/nmbd_winsserver.c
127
127
@@ -585,7 +585,7 @@
128
128
 
129
129
        add_samba_names_to_subnet(wins_server_subnet);
142
142
        all_string_sub(fname,"//", "/", 0);
143
143
        slprintf(fnamenew,sizeof(fnamenew)-1,"%s.%u", fname, (unsigned int)sys_getpid());
144
144
 
145
 
Index: samba-3.0.28a/source/passdb/login_cache.c
 
145
Index: samba-3.0.29/source/passdb/login_cache.c
146
146
===================================================================
147
 
--- samba-3.0.28a.orig/source/passdb/login_cache.c
148
 
+++ samba-3.0.28a/source/passdb/login_cache.c
 
147
--- samba-3.0.29.orig/source/passdb/login_cache.c
 
148
+++ samba-3.0.29/source/passdb/login_cache.c
149
149
@@ -36,7 +36,7 @@
150
150
        /* skip file open if it's already opened */
151
151
        if (cache) return True;
155
155
        if (cache_fname)
156
156
                DEBUG(5, ("Opening cache file at %s\n", cache_fname));
157
157
        else {
158
 
Index: samba-3.0.28a/source/nsswitch/winbindd_cache.c
 
158
Index: samba-3.0.29/source/nsswitch/winbindd_cache.c
159
159
===================================================================
160
 
--- samba-3.0.28a.orig/source/nsswitch/winbindd_cache.c
161
 
+++ samba-3.0.28a/source/nsswitch/winbindd_cache.c
162
 
@@ -2181,7 +2181,7 @@
 
160
--- samba-3.0.29.orig/source/nsswitch/winbindd_cache.c
 
161
+++ samba-3.0.29/source/nsswitch/winbindd_cache.c
 
162
@@ -2188,7 +2188,7 @@
163
163
                return True;
164
164
 
165
165
        /* when working offline we must not clear the cache on restart */
168
168
                                WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, 
169
169
                                lp_winbind_offline_logon() ? TDB_DEFAULT : (TDB_DEFAULT | TDB_CLEAR_IF_FIRST), 
170
170
                                O_RDWR|O_CREAT, 0600);
171
 
@@ -2224,9 +2224,9 @@
 
171
@@ -2231,9 +2231,9 @@
172
172
                tdb_close(wcache->tdb);
173
173
                wcache->tdb = NULL;
174
174
 
180
180
                                strerror(errno) ));
181
181
                        return False;
182
182
                }
183
 
@@ -2488,7 +2488,7 @@
 
183
@@ -2495,7 +2495,7 @@
184
184
                return;
185
185
 
186
186
        /* when working offline we must not clear the cache on restart */
189
189
                                WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE, 
190
190
                                lp_winbind_offline_logon() ? TDB_DEFAULT : (TDB_DEFAULT | TDB_CLEAR_IF_FIRST), 
191
191
                                O_RDWR|O_CREAT, 0600);
192
 
Index: samba-3.0.28a/source/param/loadparm.c
 
192
Index: samba-3.0.29/source/param/loadparm.c
193
193
===================================================================
194
 
--- samba-3.0.28a.orig/source/param/loadparm.c
195
 
+++ samba-3.0.28a/source/param/loadparm.c
 
194
--- samba-3.0.29.orig/source/param/loadparm.c
 
195
+++ samba-3.0.29/source/param/loadparm.c
196
196
@@ -108,6 +108,9 @@
197
197
        char *szAddPrinterCommand;
198
198
        char *szDeletePrinterCommand;
226
226
        pstrcat(s, "/usershares");
227
227
        string_set(&Globals.szUsersharePath, s);
228
228
        string_set(&Globals.szUsershareTemplateShare, "");
229
 
Index: samba-3.0.28a/source/passdb/secrets.c
 
229
Index: samba-3.0.29/source/passdb/secrets.c
230
230
===================================================================
231
 
--- samba-3.0.28a.orig/source/passdb/secrets.c
232
 
+++ samba-3.0.28a/source/passdb/secrets.c
 
231
--- samba-3.0.29.orig/source/passdb/secrets.c
 
232
+++ samba-3.0.29/source/passdb/secrets.c
233
233
@@ -58,8 +58,7 @@
234
234
        if (tdb)
235
235
                return True;
240
240
 
241
241
        tdb = tdb_open_log(fname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
242
242
 
243
 
Index: samba-3.0.28a/source/printing/nt_printing.c
 
243
Index: samba-3.0.29/source/printing/nt_printing.c
244
244
===================================================================
245
 
--- samba-3.0.28a.orig/source/printing/nt_printing.c
246
 
+++ samba-3.0.28a/source/printing/nt_printing.c
247
 
@@ -551,28 +551,28 @@
 
245
--- samba-3.0.29.orig/source/printing/nt_printing.c
 
246
+++ samba-3.0.29/source/printing/nt_printing.c
 
247
@@ -560,28 +560,28 @@
248
248
  
249
249
        if (tdb_drivers)
250
250
                tdb_close(tdb_drivers);
279
279
                return False;
280
280
        }
281
281
  
282
 
@@ -2359,7 +2359,7 @@
 
282
@@ -2368,7 +2368,7 @@
283
283
        close_all_print_db();
284
284
 
285
285
        if (geteuid() == 0) {
288
288
                pstrcat(printdb_path, sharename);
289
289
                pstrcat(printdb_path, ".tdb");
290
290
 
291
 
Index: samba-3.0.28a/source/printing/printing.c
 
291
Index: samba-3.0.29/source/printing/printing.c
292
292
===================================================================
293
 
--- samba-3.0.28a.orig/source/printing/printing.c
294
 
+++ samba-3.0.28a/source/printing/printing.c
 
293
--- samba-3.0.29.orig/source/printing/printing.c
 
294
+++ samba-3.0.29/source/printing/printing.c
295
295
@@ -185,8 +185,8 @@
296
296
        int services = lp_numservices();
297
297
        int snum;
303
303
        mkdir(printing_path,0755);
304
304
 
305
305
        /* handle a Samba upgrade */
306
 
Index: samba-3.0.28a/source/printing/printing_db.c
 
306
Index: samba-3.0.29/source/printing/printing_db.c
307
307
===================================================================
308
 
--- samba-3.0.28a.orig/source/printing/printing_db.c
309
 
+++ samba-3.0.28a/source/printing/printing_db.c
 
308
--- samba-3.0.29.orig/source/printing/printing_db.c
 
309
+++ samba-3.0.29/source/printing/printing_db.c
310
310
@@ -91,7 +91,7 @@
311
311
                DLIST_ADD(print_db_head, p);
312
312
        }
316
316
        pstrcat(printdb_path, printername);
317
317
        pstrcat(printdb_path, ".tdb");
318
318
 
319
 
Index: samba-3.0.28a/source/smbd/lanman.c
 
319
Index: samba-3.0.29/source/smbd/lanman.c
320
320
===================================================================
321
 
--- samba-3.0.28a.orig/source/smbd/lanman.c
322
 
+++ samba-3.0.28a/source/smbd/lanman.c
 
321
--- samba-3.0.29.orig/source/smbd/lanman.c
 
322
+++ samba-3.0.29/source/smbd/lanman.c
323
323
@@ -1094,9 +1094,9 @@
324
324
        BOOL local_list_only;
325
325
        int i;
332
332
                return 0;
333
333
        }
334
334
 
335
 
Index: samba-3.0.28a/source/registry/reg_db.c
 
335
Index: samba-3.0.29/source/registry/reg_db.c
336
336
===================================================================
337
 
--- samba-3.0.28a.orig/source/registry/reg_db.c
338
 
+++ samba-3.0.28a/source/registry/reg_db.c
 
337
--- samba-3.0.29.orig/source/registry/reg_db.c
 
338
+++ samba-3.0.29/source/registry/reg_db.c
339
339
@@ -234,12 +234,12 @@
340
340
        if ( tdb_reg )
341
341
                return True;
366
366
        }
367
367
 
368
368
        unbecome_root();
369
 
Index: samba-3.0.28a/source/lib/account_pol.c
 
369
Index: samba-3.0.29/source/lib/account_pol.c
370
370
===================================================================
371
 
--- samba-3.0.28a.orig/source/lib/account_pol.c
372
 
+++ samba-3.0.28a/source/lib/account_pol.c
 
371
--- samba-3.0.29.orig/source/lib/account_pol.c
 
372
+++ samba-3.0.29/source/lib/account_pol.c
373
373
@@ -213,9 +213,9 @@
374
374
                return True;
375
375
        }
382
382
                if (!tdb) {
383
383
                        DEBUG(0,("Failed to open account policy database\n"));
384
384
                        return False;
385
 
Index: samba-3.0.28a/source/registry/reg_perfcount.c
 
385
Index: samba-3.0.29/source/registry/reg_perfcount.c
386
386
===================================================================
387
 
--- samba-3.0.28a.orig/source/registry/reg_perfcount.c
388
 
+++ samba-3.0.28a/source/registry/reg_perfcount.c
 
387
--- samba-3.0.29.orig/source/registry/reg_perfcount.c
 
388
+++ samba-3.0.29/source/registry/reg_perfcount.c
389
389
@@ -46,7 +46,7 @@
390
390
        
391
391
        fstr_sprintf( path, "%s/%s", PERFCOUNTDIR, dbname );
404
404
 
405
405
        /* no registry keys; just create the perfmon directory */
406
406
        
407
 
Index: samba-3.0.28a/source/rpc_server/srv_eventlog_lib.c
 
407
Index: samba-3.0.29/source/rpc_server/srv_eventlog_lib.c
408
408
===================================================================
409
 
--- samba-3.0.28a.orig/source/rpc_server/srv_eventlog_lib.c
410
 
+++ samba-3.0.28a/source/rpc_server/srv_eventlog_lib.c
 
409
--- samba-3.0.29.orig/source/rpc_server/srv_eventlog_lib.c
 
410
+++ samba-3.0.29/source/rpc_server/srv_eventlog_lib.c
411
411
@@ -67,7 +67,7 @@
412
412
 {
413
413
        fstring path;
426
426
        if ( !directory_exist( eventlogdir, NULL ) )
427
427
                mkdir( eventlogdir, 0755 );     
428
428
        
429
 
Index: samba-3.0.28a/source/passdb/pdb_tdb.c
 
429
Index: samba-3.0.29/source/passdb/pdb_tdb.c
430
430
===================================================================
431
 
--- samba-3.0.28a.orig/source/passdb/pdb_tdb.c
432
 
+++ samba-3.0.28a/source/passdb/pdb_tdb.c
 
431
--- samba-3.0.29.orig/source/passdb/pdb_tdb.c
 
432
+++ samba-3.0.29/source/passdb/pdb_tdb.c
433
433
@@ -1559,7 +1559,7 @@
434
434
        uint32 rid;
435
435
        BOOL ret = False;
448
448
                pfile = tdbfile;
449
449
        }
450
450
        pstrcpy( tdbsam_filename, pfile );
451
 
Index: samba-3.0.28a/source/groupdb/mapping_tdb.c
 
451
Index: samba-3.0.29/source/groupdb/mapping_tdb.c
452
452
===================================================================
453
 
--- samba-3.0.28a.orig/source/groupdb/mapping_tdb.c
454
 
+++ samba-3.0.28a/source/groupdb/mapping_tdb.c
 
453
--- samba-3.0.29.orig/source/groupdb/mapping_tdb.c
 
454
+++ samba-3.0.29/source/groupdb/mapping_tdb.c
455
455
@@ -39,7 +39,7 @@
456
456
        if (tdb)
457
457
                return True;
461
461
        if (!tdb) {
462
462
                DEBUG(0,("Failed to open group mapping database\n"));
463
463
                return False;
464
 
Index: samba-3.0.28a/source/nsswitch/idmap_tdb.c
 
464
Index: samba-3.0.29/source/nsswitch/idmap_tdb.c
465
465
===================================================================
466
 
--- samba-3.0.28a.orig/source/nsswitch/idmap_tdb.c
467
 
+++ samba-3.0.28a/source/nsswitch/idmap_tdb.c
 
466
--- samba-3.0.29.orig/source/nsswitch/idmap_tdb.c
 
467
+++ samba-3.0.29/source/nsswitch/idmap_tdb.c
468
468
@@ -247,7 +247,7 @@
469
469
        }
470
470
 
474
474
        if (!tdbfile) {
475
475
                DEBUG(0, ("Out of memory!\n"));
476
476
                ret = NT_STATUS_NO_MEMORY;
477
 
Index: samba-3.0.28a/source/utils/smbcontrol.c
 
477
Index: samba-3.0.29/source/utils/smbcontrol.c
478
478
===================================================================
479
 
--- samba-3.0.28a.orig/source/utils/smbcontrol.c
480
 
+++ samba-3.0.28a/source/utils/smbcontrol.c
 
479
--- samba-3.0.29.orig/source/utils/smbcontrol.c
 
480
+++ samba-3.0.29/source/utils/smbcontrol.c
481
481
@@ -832,10 +832,10 @@
482
482
        /* Remove the entry in the winbindd_cache tdb to tell a later
483
483
           starting winbindd that we're online. */
507
507
                return False;
508
508
        }
509
509
 
510
 
Index: samba-3.0.28a/source/lib/sharesec.c
 
510
Index: samba-3.0.29/source/lib/sharesec.c
511
511
===================================================================
512
 
--- samba-3.0.28a.orig/source/lib/sharesec.c
513
 
+++ samba-3.0.28a/source/lib/sharesec.c
 
512
--- samba-3.0.29.orig/source/lib/sharesec.c
 
513
+++ samba-3.0.29/source/lib/sharesec.c
514
514
@@ -47,10 +47,10 @@
515
515
                return True;
516
516
        }
524
524
                return False;
525
525
        }
526
526
  
527
 
Index: samba-3.0.28a/source/libgpo/gpo_fetch.c
 
527
Index: samba-3.0.29/source/libgpo/gpo_fetch.c
528
528
===================================================================
529
 
--- samba-3.0.28a.orig/source/libgpo/gpo_fetch.c
530
 
+++ samba-3.0.28a/source/libgpo/gpo_fetch.c
 
529
--- samba-3.0.29.orig/source/libgpo/gpo_fetch.c
 
530
+++ samba-3.0.29/source/libgpo/gpo_fetch.c
531
531
@@ -60,7 +60,7 @@
532
532
                return NT_STATUS_NO_MEMORY;
533
533
        }
546
546
        char *current_dir;
547
547
        fstring tok;
548
548
 
549
 
Index: samba-3.0.28a/source/nsswitch/idmap_cache.c
 
549
Index: samba-3.0.29/source/nsswitch/idmap_cache.c
550
550
===================================================================
551
 
--- samba-3.0.28a.orig/source/nsswitch/idmap_cache.c
552
 
+++ samba-3.0.28a/source/nsswitch/idmap_cache.c
 
551
--- samba-3.0.29.orig/source/nsswitch/idmap_cache.c
 
552
+++ samba-3.0.29/source/nsswitch/idmap_cache.c
553
553
@@ -55,7 +55,7 @@
554
554
                return NULL;
555
555
        }