replace MAXDROPLEN with MAXPATHLEN
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10678 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -45,7 +45,7 @@ make_path(POP *p, MsgInfoList *mp, int new, char *buf, size_t len)
|
|||||||
static int
|
static int
|
||||||
scan_file(POP *p, MsgInfoList *mp)
|
scan_file(POP *p, MsgInfoList *mp)
|
||||||
{
|
{
|
||||||
char path[MAXDROPLEN];
|
char path[MAXPATHLEN];
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
int eoh = 0;
|
int eoh = 0;
|
||||||
@@ -80,7 +80,7 @@ scan_file(POP *p, MsgInfoList *mp)
|
|||||||
static int
|
static int
|
||||||
scan_dir(POP *p, int new)
|
scan_dir(POP *p, int new)
|
||||||
{
|
{
|
||||||
char tmp[MAXDROPLEN];
|
char tmp[MAXPATHLEN];
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
struct dirent *dent;
|
struct dirent *dent;
|
||||||
MsgInfoList *mp = p->mlp;
|
MsgInfoList *mp = p->mlp;
|
||||||
@@ -145,7 +145,7 @@ int
|
|||||||
pop_maildir_update(POP *p)
|
pop_maildir_update(POP *p)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
char tmp1[MAXDROPLEN], tmp2[MAXDROPLEN];
|
char tmp1[MAXPATHLEN], tmp2[MAXPATHLEN];
|
||||||
for(i = 0; i < p->msg_count; i++) {
|
for(i = 0; i < p->msg_count; i++) {
|
||||||
make_path(p, &p->mlp[i], p->mlp[i].flags & NEW_FLAG,
|
make_path(p, &p->mlp[i], p->mlp[i].flags & NEW_FLAG,
|
||||||
tmp1, sizeof(tmp1));
|
tmp1, sizeof(tmp1));
|
||||||
@@ -205,7 +205,7 @@ pop_maildir_update(POP *p)
|
|||||||
int
|
int
|
||||||
pop_maildir_open(POP *p, MsgInfoList *mp)
|
pop_maildir_open(POP *p, MsgInfoList *mp)
|
||||||
{
|
{
|
||||||
char tmp[MAXDROPLEN];
|
char tmp[MAXPATHLEN];
|
||||||
make_path(p, mp, mp->flags & NEW_FLAG, tmp, sizeof(tmp));
|
make_path(p, mp, mp->flags & NEW_FLAG, tmp, sizeof(tmp));
|
||||||
if(p->drop)
|
if(p->drop)
|
||||||
fclose(p->drop);
|
fclose(p->drop);
|
||||||
|
@@ -85,6 +85,10 @@
|
|||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_ARPA_INET_H
|
#ifdef HAVE_ARPA_INET_H
|
||||||
|
#ifdef _AIX
|
||||||
|
struct sockaddr_dl; /* AIX fun */
|
||||||
|
struct ether_addr;
|
||||||
|
#endif
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYSLOG_H
|
#ifdef HAVE_SYSLOG_H
|
||||||
@@ -115,7 +119,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MAXUSERNAMELEN 65
|
#define MAXUSERNAMELEN 65
|
||||||
#define MAXDROPLEN 64
|
|
||||||
#define MAXLINELEN 1024
|
#define MAXLINELEN 1024
|
||||||
#define MAXMSGLINELEN 1024
|
#define MAXMSGLINELEN 1024
|
||||||
#define MAXCMDLEN 4
|
#define MAXCMDLEN 4
|
||||||
@@ -242,9 +245,9 @@ typedef struct { /* POP parameter block */
|
|||||||
the user */
|
the user */
|
||||||
long bytes_deleted; /* Number of maildrop bytes
|
long bytes_deleted; /* Number of maildrop bytes
|
||||||
flagged for deletion */
|
flagged for deletion */
|
||||||
char drop_name[MAXDROPLEN]; /* The name of the user's
|
char drop_name[MAXPATHLEN]; /* The name of the user's
|
||||||
maildrop */
|
maildrop */
|
||||||
char temp_drop[MAXDROPLEN]; /* The name of the user's
|
char temp_drop[MAXPATHLEN]; /* The name of the user's
|
||||||
temporary maildrop */
|
temporary maildrop */
|
||||||
long drop_size; /* Size of the maildrop in
|
long drop_size; /* Size of the maildrop in
|
||||||
bytes */
|
bytes */
|
||||||
|
Reference in New Issue
Block a user