Revert all except warning fixes
This commit is contained in:
@@ -14,8 +14,6 @@
|
||||
#include "includes.h"
|
||||
#include "confread.h"
|
||||
#include "logger.h"
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
|
||||
struct {
|
||||
char *name;
|
||||
@@ -28,8 +26,6 @@ struct {
|
||||
{ NULL, 0 }
|
||||
};
|
||||
|
||||
extern char **environ;
|
||||
|
||||
int exec_file_exist(const char *command)
|
||||
{
|
||||
const char *p;
|
||||
@@ -77,18 +73,9 @@ int exec_options_parse(char *str)
|
||||
|
||||
void exec_options_init(s_exec_options *eopt)
|
||||
{
|
||||
int i = 0;
|
||||
memset(eopt, '\0', sizeof(s_exec_options));
|
||||
eopt->umask = EXEC_DEFAULT_UMASK;
|
||||
eopt->envp[0] = NULL;
|
||||
|
||||
while(sessenv[i]) {
|
||||
log("EXEC: Added ENV variable: %s\n", sessenv[i]);
|
||||
eopt->envp[i] = xmalloc(strlen(sessenv[i]) + 2);
|
||||
sprintf(eopt->envp[i], sessenv[i++]);
|
||||
eopt->envp[i] = NULL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void exec_options_deinit(s_exec_options *eopt)
|
||||
|
||||
Reference in New Issue
Block a user