|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 23.88 GB of 70.42 GB (33.91%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
maildrop-2.2.0/
maildir/
- drwxr-xr-x
|
Viewing file: maildirrequota.c (890 B) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 1998 - 2002 Double Precision, Inc. ** See COPYING for distribution information. */
#include "config.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <ctype.h> #include "maildirrequota.h"
static const char rcsid[]="$Id: maildirrequota.c,v 1.4 2002/07/02 20:01:37 mrsam Exp $";
char *maildir_requota(const char *oldname, unsigned long s) { char buf[40]; char *p; const char *q;
sprintf(buf, ",S=%lu", s);
if ((p=malloc(strlen(oldname)+strlen(buf)+1)) == 0) return (0);
if ((q=strrchr(oldname, '/')) == 0) q=oldname; while (*q) { if ((*q == ',' && q[1] == 'S' && q[2] == '=') || *q == MDIRSEP[0]) { memcpy(p, oldname, q-oldname); strcpy(p + (q-oldname), buf);
if (*q == ',') q += 3;
for ( ; isdigit((int)(unsigned char)*q); q++) ; strcat(p, q); return (p); } ++q; } return (strcat(strcpy(p, oldname), buf)); }
|