mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
r5135: I prepare a clean up in includes.h
metze
This commit is contained in:
parent
6bb07a0ed8
commit
670e088e94
@ -23,6 +23,7 @@
|
|||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include "dynconfig.h"
|
#include "dynconfig.h"
|
||||||
|
#include "system/filesys.h"
|
||||||
#include "system/passwd.h"
|
#include "system/passwd.h"
|
||||||
#include "lib/cmdline/popt_common.h"
|
#include "lib/cmdline/popt_common.h"
|
||||||
|
|
||||||
@ -403,7 +404,7 @@ static void popt_common_credentials_callback(poptContext con,
|
|||||||
snprintf(cmdline_auth_info.username, sizeof(cmdline_auth_info.username),
|
snprintf(cmdline_auth_info.username, sizeof(cmdline_auth_info.username),
|
||||||
"%s$", lp_netbios_name());
|
"%s$", lp_netbios_name());
|
||||||
pstrcpy(cmdline_auth_info.password,opt_password);
|
pstrcpy(cmdline_auth_info.password,opt_password);
|
||||||
SAFE_FREE(opt_password);
|
free(opt_password);
|
||||||
cmdline_auth_info.got_pass = True;
|
cmdline_auth_info.got_pass = True;
|
||||||
|
|
||||||
pstrcpy(cmdline_auth_info.domain, lp_workgroup());
|
pstrcpy(cmdline_auth_info.domain, lp_workgroup());
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef HAVE_LIBREADLINE
|
#ifdef HAVE_LIBREADLINE
|
||||||
# ifdef HAVE_READLINE_READLINE_H
|
# ifdef HAVE_READLINE_READLINE_H
|
||||||
# include <readline/readline.h>
|
# include <readline/readline.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user