|
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 | : | 25.6 GB of 70.42 GB (36.36%) |
|
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/
courier-0.66.1/
maildrop/
- drwxrwxrwx
|
Viewing file: tempfile.C (1.22 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
#include "config.h" #include "tempfile.h" #include "funcs.h" #include "mio.h"
TempFile::TempFile() : #if SHARED_TEMPDIR fp(0), #endif filename(0), fd(-1), do_remove(0) { constructed(); }
TempFile::~TempFile() { destroying(); Close(); if (filename) { delete[] filename; filename=0; } }
int TempFile::Open(const char *fname, int flags, mode_t mode) { Close(); name(fname);
fd=mopen(fname, flags, mode); if ( fd < 0 ) name(0); else descriptor(fd); return (fd); }
#if SHARED_TEMPDIR
int TempFile::Open() { Close(); fp=tmpfile(); if (fp == 0) return (-1); fd=fileno(fp); return (fd); } #endif
void TempFile::name(const char *fname) { do_remove=0; if (filename) delete[] filename; if (!fname) { filename=0; return; }
filename=new char[strlen(fname)+1];
if (!filename) outofmem(); strcpy(filename, fname); do_remove=1; }
void TempFile::Close() { if (fd >= 0) { close(fd); fd= -1; }
#if SHARED_TEMPDIR if (fp) { fclose(fp); fp=0; } #endif
if (do_remove) { unlink(filename); do_remove=0; } }
void TempFile::cleanup() { Close(); }
// When forked, the child process should just close the descriptor, do NOT // remove the file!
void TempFile::forked() { do_remove=0; Close(); }
|