403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/mail/balsa/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/mail/balsa/files/patch-libbalsa_mailbox_mbox.c
--- libbalsa/mailbox_mbox.c.orig	Tue Dec 27 14:54:34 2005
+++ libbalsa/mailbox_mbox.c	Thu Dec 29 01:44:01 2005
@@ -26,6 +26,7 @@
 
 #include <gmime/gmime-stream-fs.h>
 
+#include <sys/stat.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
@@ -214,7 +215,7 @@ lbm_mbox_check_files(const gchar * path,
     } else if (create) {
         gint fd;
 
-        if ((fd = creat(path, S_IRUSR | S_IWUSR)) == -1) {
+	if ((fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR)) == -1) {
             g_warning("An error:\n%s\n occurred while trying to "
                       "create the mailbox \"%s\"\n",
                       strerror(errno), path);

Youez - 2016 - github.com/yon3zu
LinuXploit