1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## fileHfCUIw.dpatch by Sven Mueller <debian@incase.de>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad cyrus-imapd-2.2.13/lib/acl_afs.c /tmp/dpep.4TxSCg/cyrus-imapd-2.2.13/lib/acl_afs.c
9
--- cyrus-imapd-2.2.13/lib/acl_afs.c 2005-03-12 23:09:22.000000000 +0100
10
+++ /tmp/dpep.4TxSCg/cyrus-imapd-2.2.13/lib/acl_afs.c 2006-05-03 15:27:47.049193574 +0200
12
cyrus_acl_canonproc_t *canonproc;
15
+ const char *canonid;
16
char *newidentifier = 0;
18
char *thisid, *nextid;
21
/* Convert 'identifier' into canonical form */
22
if (*identifier == '-') {
23
- char *canonid = auth_canonifyid(identifier+1, 0);
24
+ canonid = auth_canonifyid(identifier+1, 0);
30
+ /* trying to delete invalid/non-existent identifier */
31
+ canonid = identifier+1;
34
newidentifier = xmalloc(strlen(canonid)+2);
35
newidentifier[0] = '-';
40
- identifier = auth_canonifyid(identifier, 0);
42
+ canonid = auth_canonifyid(identifier, 0);
44
+ identifier = canonid;
45
+ } else if (access != 0L) {
48
+ /* trying to delete invalid/non-existent identifier */
51
access = canonproc(canonrock, identifier, access);