~ubuntu-branches/ubuntu/karmic/cyrus-imapd-2.2/karmic

« back to all changes in this revision

Viewing changes to debian/patches/18-fix_strlen_return_type.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-07-11 18:51:39 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060711185139-gl3oe4tppp7g3euf
Tags: 2.2.13-4ubuntu1
Synchronize with Debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
diff -urNad complete.dpatch/imap/imapd.c /tmp/dpep.2wtF9E/complete.dpatch/imap/imapd.c
10
10
--- complete.dpatch/imap/imapd.c        2005-11-11 16:17:00.000000000 +0100
11
11
+++ /tmp/dpep.2wtF9E/complete.dpatch/imap/imapd.c       2005-11-11 16:17:00.679913340 +0100
12
 
@@ -6071,8 +6071,8 @@
 
12
@@ -6095,8 +6095,8 @@
13
13
     memset(&tmp, 0, sizeof(struct buf));
14
14
     memset(&user, 0, sizeof(struct buf));
15
15
 
20
20
 
21
21
     while(1) {
22
22
        c = getword(pin, &tag);
23
 
@@ -6122,9 +6122,9 @@
 
23
@@ -6146,9 +6146,9 @@
24
24
 
25
25
                snprintf(tagbuf, sizeof(tagbuf), "ACL%d", ++i);
26
26
                
33
33
                if(c == '\r') {
34
34
                    c = prot_getc(pin);
35
35
                    if(c != '\n') {
36
 
@@ -6199,11 +6199,11 @@
 
36
@@ -6223,11 +6223,11 @@
37
37
 
38
38
        snprintf(tag, sizeof(tag), "SACL%d", tagnum++);
39
39
        
48
48
 
49
49
        while(1) {
50
50
            c = getword(pin, &inbuf);
51
 
@@ -6317,11 +6317,11 @@
 
51
@@ -6341,11 +6341,11 @@
52
52
     if(!r) {
53
53
        if(topart) {
54
54
            /* need to send partition as an atom */
64
64
        }
65
65
        r = getresult(be->in, "LC1");
66
66
        if(r) syslog(LOG_ERR, "Could not move mailbox: %s, LOCALCREATE failed",
67
 
@@ -6355,7 +6355,8 @@
 
67
@@ -6379,7 +6379,8 @@
68
68
     if(!r) {
69
69
        backout_mupdate = 1;
70
70
 
74
74
 
75
75
        r = dump_mailbox(NULL, mailboxname, path, acl, 0, be->in, be->out,
76
76
                         imapd_authstate);
77
 
@@ -6401,8 +6402,8 @@
 
77
@@ -6425,8 +6426,8 @@
78
78
        /* 6.5) Kick remote server to correct mupdate entry */
79
79
        /* Note that we don't really care if this succeeds or not */
80
80
        if (mupdate_h) {
85
85
            rerr = getresult(be->in, "MP1");
86
86
            if(rerr) {
87
87
                syslog(LOG_ERR,
88
 
@@ -6441,8 +6442,8 @@
 
88
@@ -6465,8 +6466,8 @@
89
89
     }
90
90
     if(r && backout_remotebox) {
91
91
        rerr = 0;
96
96
        rerr = getresult(be->in, "LD1");
97
97
        if(rerr) {
98
98
            syslog(LOG_ERR,
99
 
@@ -6637,9 +6638,10 @@
 
99
@@ -6661,9 +6662,10 @@
100
100
            if(!r) {
101
101
                /* note use of + to force the setting of a nonexistant
102
102
                 * quotaroot */
109
109
                r = getresult(be->in, "Q01");
110
110
                if(r) syslog(LOG_ERR,
111
111
                             "Could not move mailbox: %s, " \
112
 
@@ -7183,7 +7185,7 @@
 
112
@@ -7207,7 +7209,7 @@
113
113
 
114
114
     /* if it's too long, literal it */
115
115
     if (*p || len >= 1024) {
118
118
     } else {
119
119
        prot_printf(imapd_out, "\"%s\"", s);
120
120
     }
121
 
@@ -7213,7 +7215,7 @@
 
121
@@ -7237,7 +7239,7 @@
122
122
 
123
123
     /* if it's too long, literal it */
124
124
     if (*p || len >= 1024) {
200
200
diff -urNad complete.dpatch/imap/mupdate-client.c /tmp/dpep.2wtF9E/complete.dpatch/imap/mupdate-client.c
201
201
--- complete.dpatch/imap/mupdate-client.c       2005-11-11 16:16:59.000000000 +0100
202
202
+++ /tmp/dpep.2wtF9E/complete.dpatch/imap/mupdate-client.c      2005-11-11 16:17:00.681913145 +0100
203
 
@@ -331,9 +331,11 @@
 
203
@@ -330,9 +330,11 @@
204
204
     if (!handle->saslcompleted) return MUPDATE_NOAUTH;
205
205
 
206
206
     prot_printf(handle->pout,
215
215
 
216
216
     ret = mupdate_scarf(handle, mupdate_scarf_one, NULL, 1, &response);
217
217
     if (ret) {
218
 
@@ -356,9 +358,10 @@
 
218
@@ -355,9 +357,10 @@
219
219
     if (!handle->saslcompleted) return MUPDATE_NOAUTH;
220
220
 
221
221
     prot_printf(handle->pout,
229
229
 
230
230
     ret = mupdate_scarf(handle, mupdate_scarf_one, NULL, 1, &response);
231
231
     if (ret) {
232
 
@@ -381,9 +384,10 @@
 
232
@@ -380,9 +383,10 @@
233
233
     if (!handle->saslcompleted) return MUPDATE_NOAUTH;
234
234
 
235
235
     prot_printf(handle->pout,
243
243
 
244
244
     ret = mupdate_scarf(handle, mupdate_scarf_one, NULL, 1, &response);
245
245
     if (ret) {
246
 
@@ -406,8 +410,8 @@
 
246
@@ -405,8 +409,8 @@
247
247
     if (!handle->saslcompleted) return MUPDATE_NOAUTH;
248
248
 
249
249
     prot_printf(handle->pout,
254
254
 
255
255
     ret = mupdate_scarf(handle, mupdate_scarf_one, NULL, 1, &response);
256
256
     if (ret) {
257
 
@@ -475,8 +479,8 @@
 
257
@@ -474,8 +478,8 @@
258
258
     if(!handle || !mailbox || !target) return MUPDATE_BADPARAM;
259
259
 
260
260
     prot_printf(handle->pout,
265
265
 
266
266
     memset(&(handle->mailboxdata_buf), 0, sizeof(handle->mailboxdata_buf));
267
267
 
268
 
@@ -508,8 +512,8 @@
 
268
@@ -507,8 +511,8 @@
269
269
 
270
270
     if(prefix) {
271
271
        prot_printf(handle->pout,
279
279
diff -urNad complete.dpatch/imap/mupdate.c /tmp/dpep.2wtF9E/complete.dpatch/imap/mupdate.c
280
280
--- complete.dpatch/imap/mupdate.c      2005-11-11 16:16:59.000000000 +0100
281
281
+++ /tmp/dpep.2wtF9E/complete.dpatch/imap/mupdate.c     2005-11-11 16:17:00.682913047 +0100
282
 
@@ -1589,20 +1589,20 @@
 
282
@@ -1613,20 +1613,20 @@
283
283
     pthread_mutex_unlock(&mailboxes_mutex); /* UNLOCK */
284
284
 
285
285
     if (m && m->t == SET_ACTIVE) {
309
309
     }
310
310
     
311
311
     free_mbent(m);
312
 
@@ -1644,17 +1644,17 @@
 
312
@@ -1668,17 +1668,17 @@
313
313
            switch (m->t) {
314
314
            case SET_ACTIVE:
315
315
                prot_printf(C->pout,
337
337
diff -urNad complete.dpatch/imap/proxyd.c /tmp/dpep.2wtF9E/complete.dpatch/imap/proxyd.c
338
338
--- complete.dpatch/imap/proxyd.c       2005-11-11 16:17:00.000000000 +0100
339
339
+++ /tmp/dpep.2wtF9E/complete.dpatch/imap/proxyd.c      2005-11-11 16:17:00.685912753 +0100
340
 
@@ -2888,7 +2888,8 @@
341
 
        if (!s) r = IMAP_SERVER_UNAVAILABLE;
342
 
     }
 
340
@@ -2837,7 +2837,8 @@
343
341
     if (!r) {
 
342
        int is_active = 1;
 
343
        s->context = (void*) &is_active;
344
344
-       prot_printf(s->out, "%s Append {%d+}\r\n%s ", tag, strlen(name), name);
345
 
+       prot_printf(s->out, "%s Append {%lu+}\r\n%s ", tag,
346
 
+                       (unsigned long) strlen(name), name);
347
 
        if (!pipe_command(s, 16384)) {
 
345
+       prot_printf(s->out, "%s Append {%lu+}\r\n%s ", tag,
 
346
+                       (unsigned long) strlen(name), name);
 
347
        if (!(r = pipe_command(s, 16384))) {
348
348
            pipe_until_tag(s, tag, 0);
349
349
        }
350
 
@@ -2961,8 +2962,8 @@
 
350
@@ -2913,8 +2914,8 @@
351
351
        return;
352
352
     }
353
353
 
358
358
     switch (pipe_including_tag(backend_current, tag, 0)) {
359
359
     case PROXY_OK:
360
360
        proc_register("proxyd", proxyd_clienthost, proxyd_userid, mailboxname);
361
 
@@ -3192,8 +3193,9 @@
 
361
@@ -3144,8 +3145,9 @@
362
362
                    r == 0 ? "[TRYCREATE] " : "", error_message(r));
363
363
     } else if (s == backend_current) {
364
364
        /* this is the easy case */
370
370
        pipe_including_tag(backend_current, tag, 0);
371
371
     } else {
372
372
        char mytag[128];
373
 
@@ -3346,7 +3348,8 @@
 
373
@@ -3306,7 +3308,8 @@
374
374
        }
375
375
 
376
376
        /* start the append */
380
380
        prot_printf(backend_current->out, "%s %s %s (Rfc822.peek)\r\n",
381
381
                    mytag, usinguid ? "Uid Fetch" : "Fetch", sequence);
382
382
        for (/* each FETCH response */;;) {
383
 
@@ -3576,8 +3579,8 @@
 
383
@@ -3551,8 +3554,8 @@
384
384
 
385
385
     if (!r) {
386
386
        /* ok, send the create to that server */
391
391
        res = pipe_including_tag(s, tag, 0);
392
392
        tag = "*";              /* can't send another tagged response */
393
393
        
394
 
@@ -3617,8 +3620,8 @@
 
394
@@ -3592,8 +3595,8 @@
395
395
     }
396
396
 
397
397
     if (!r) {
402
402
        res = pipe_including_tag(s, tag, 0);
403
403
        tag = "*";              /* can't send another tagged response */
404
404
 
405
 
@@ -3719,17 +3722,17 @@
 
405
@@ -3694,17 +3697,17 @@
406
406
                /* Cross Server */
407
407
                /* <tag> XFER <name> <dest server> <dest partition> */
408
408
                prot_printf(s->out,
427
427
        }
428
428
        
429
429
        res = pipe_including_tag(s, tag, 0);
430
 
@@ -3745,9 +3748,9 @@
 
430
@@ -3720,9 +3723,9 @@
431
431
            /* do MUPDATE create operations for new mailbox */
432
432
        }
433
433
 
440
440
        res = pipe_including_tag(s, tag, 0);
441
441
        tag = "*";              /* can't send another tagged response */
442
442
        
443
 
@@ -3782,8 +3785,8 @@
 
443
@@ -3757,8 +3760,8 @@
444
444
 
445
445
        if (backend_inbox) {
446
446
            prot_printf(backend_inbox->out, 
451
451
            pipe_lsub(backend_inbox, tag, 0, "MAILBOX");
452
452
        } else {                /* user doesn't have an INBOX */
453
453
            /* noop */
454
 
@@ -3852,9 +3855,9 @@
 
454
@@ -3827,9 +3830,9 @@
455
455
 
456
456
        if (backend_inbox) {
457
457
            prot_printf(backend_inbox->out, 
464
464
            pipe_lsub(backend_inbox, tag, 0, (listopts & LIST_LSUB) ? "LSUB" : "LIST");
465
465
        } else {                /* user doesn't have an INBOX */
466
466
            /* noop */
467
 
@@ -3943,14 +3946,14 @@
 
467
@@ -3918,14 +3921,14 @@
468
468
        
469
469
        if (namespace) {
470
470
            prot_printf(backend_inbox->out, 
484
484
        }
485
485
        pipe_including_tag(backend_inbox, tag, 0);
486
486
     } else {
487
 
@@ -4182,15 +4185,15 @@
 
487
@@ -4157,15 +4160,15 @@
488
488
     } else if (!r) {
489
489
        if (rights) {
490
490
            prot_printf(s->out, 
507
507
        }           
508
508
        res = pipe_including_tag(s, tag, 0);
509
509
        tag = "*";              /* can't send another tagged response */
510
 
@@ -4290,8 +4293,8 @@
 
510
@@ -4265,8 +4268,8 @@
511
511
        if (!r) s = proxyd_findserver(server);
512
512
 
513
513
        if (s) {
518
518
            pipe_including_tag(s, tag, 0);
519
519
        } else {
520
520
            r = IMAP_SERVER_UNAVAILABLE;
521
 
@@ -4517,8 +4520,8 @@
 
521
@@ -4492,8 +4495,8 @@
522
522
     if (!r) s = proxyd_findserver(server);
523
523
     if (!r && !s) r = IMAP_SERVER_UNAVAILABLE;
524
524
     if (!r) {
529
529
        if (!pipe_command(s, 65536)) {
530
530
            pipe_until_tag(s, tag, 0);
531
531
        }
532
 
@@ -4658,7 +4661,7 @@
 
532
@@ -4633,7 +4636,7 @@
533
533
 
534
534
     /* if it's too long, literal it */
535
535
     if (*p || len >= 1024) {
538
538
     } else {
539
539
        prot_printf(proxyd_out, "\"%s\"", s);
540
540
     }
541
 
@@ -4686,7 +4689,7 @@
 
541
@@ -4661,7 +4664,7 @@
542
542
 
543
543
     /* if it's too long, literal it */
544
544
     if (*p || len >= 1024) {
550
550
diff -urNad complete.dpatch/imtest/imtest.c /tmp/dpep.2wtF9E/complete.dpatch/imtest/imtest.c
551
551
--- complete.dpatch/imtest/imtest.c     2005-11-11 16:17:00.000000000 +0100
552
552
+++ /tmp/dpep.2wtF9E/complete.dpatch/imtest/imtest.c    2005-11-11 17:01:17.683492575 +0100
553
 
@@ -625,14 +625,14 @@
 
553
@@ -624,14 +624,14 @@
554
554
        return (ret);
555
555
     
556
556
     if (cmd == (BIO_CB_READ | BIO_CB_RETURN)) {
569
569
               argi, ret, (unsigned int) ret);
570
570
        tls_dump(argp, (int) ret);
571
571
     }
572
 
@@ -1769,7 +1769,8 @@
 
572
@@ -1771,7 +1771,8 @@
573
573
 {
574
574
     int lup;
575
575
     
582
582
diff -urNad complete.dpatch/master/master.c /tmp/dpep.2wtF9E/complete.dpatch/master/master.c
583
583
--- complete.dpatch/master/master.c     2005-11-11 16:17:00.000000000 +0100
584
584
+++ /tmp/dpep.2wtF9E/complete.dpatch/master/master.c    2005-11-11 16:17:00.688912460 +0100
585
 
@@ -1889,7 +1889,7 @@
 
585
@@ -1888,7 +1888,7 @@
586
586
            }
587
587
            
588
588
            /* Write PID */
594
594
diff -urNad complete.dpatch/timsieved/actions.c /tmp/dpep.2wtF9E/complete.dpatch/timsieved/actions.c
595
595
--- complete.dpatch/timsieved/actions.c 2005-11-11 16:16:59.000000000 +0100
596
596
+++ /tmp/dpep.2wtF9E/complete.dpatch/timsieved/actions.c        2005-11-11 16:17:00.688912460 +0100
597
 
@@ -353,7 +353,8 @@
 
597
@@ -364,7 +364,8 @@
598
598
 
599
599
   if (result != TIMSIEVE_OK) {
600
600
       if (errstr && *errstr) {