Browse Source

another attempt at working around glibc breakage.

wip/ssl-fprint
Oswald Buddenhagen 19 years ago
parent
commit
b6c6299ea6
  1. 9
      src/drv_maildir.c

9
src/drv_maildir.c

@ -637,11 +637,10 @@ maildir_scan( maildir_store_t *ctx, msglist_t *msglist )
for (ru = u + 3; isdigit( (unsigned char)*ru ); ru++); for (ru = u + 3; isdigit( (unsigned char)*ru ); ru++);
else else
u = ru = strchr( entry->base, ':' ); u = ru = strchr( entry->base, ':' );
if (u) fnl = (u ?
ml = u - entry->base; nfsnprintf( buf + bl, sizeof(buf) - bl, "%s/%.*s,U=%d%s", subdirs[entry->recent], u - entry->base, entry->base, uid, ru ) :
else nfsnprintf( buf + bl, sizeof(buf) - bl, "%s/%s,U=%d", subdirs[entry->recent], entry->base, uid ))
ru = "", ml = sizeof(buf); + 1 - 4;
fnl = nfsnprintf( buf + bl, sizeof(buf) - bl, "%s/%.*s,U=%d%s", subdirs[entry->recent], ml, entry->base, uid, ru ) + 1 - 4;
memcpy( nbuf, buf, bl + 4 ); memcpy( nbuf, buf, bl + 4 );
nfsnprintf( nbuf + bl + 4, sizeof(nbuf) - bl - 4, "%s", entry->base ); nfsnprintf( nbuf + bl + 4, sizeof(nbuf) - bl - 4, "%s", entry->base );
if (rename( nbuf, buf )) { if (rename( nbuf, buf )) {

Loading…
Cancel
Save