less confusing error message on invalid mailbox.

This commit is contained in:
Oswald Buddenhagen 2005-12-21 13:04:43 +00:00
parent 6d229848a5
commit 8db5ec1e5e

View File

@ -244,7 +244,7 @@ maildir_validate( const char *prefix, const char *box, int create )
for (i = 0; i < 3; i++) {
memcpy( buf + bl, subdirs[i], 4 );
if (stat( buf, &st ) || !S_ISDIR(st.st_mode)) {
fprintf( stderr, "Maildir error: '%s' is no valid mailbox\n", buf );
fprintf( stderr, "Maildir error: '%.*s' is no valid mailbox\n", bl, buf );
return DRV_BOX_BAD;
}
}