Fix set_user prototype.
This commit is contained in:
@ -210,7 +210,7 @@ static bool resolve_maxscale_conf_fname(
|
|||||||
char* cnf_file_arg);
|
char* cnf_file_arg);
|
||||||
|
|
||||||
static char* check_dir_access(char* dirname, bool, bool);
|
static char* check_dir_access(char* dirname, bool, bool);
|
||||||
static int set_user();
|
static int set_user(const char* user);
|
||||||
bool pid_file_exists();
|
bool pid_file_exists();
|
||||||
void write_child_exit_code(int fd, int code);
|
void write_child_exit_code(int fd, int code);
|
||||||
/** SSL multi-threading functions and structures */
|
/** SSL multi-threading functions and structures */
|
||||||
@ -2433,7 +2433,7 @@ static int cnf_preparser(void* data, const char* section, const char* name, cons
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int set_user(char* user)
|
static int set_user(const char* user)
|
||||||
{
|
{
|
||||||
errno = 0;
|
errno = 0;
|
||||||
struct passwd *pwname;
|
struct passwd *pwname;
|
||||||
|
Reference in New Issue
Block a user