*/
#include "includes.h"
+#include "system/passwd.h"
#include <mntent.h>
#include <asm/types.h>
static pstring service;
static pstring options;
-static struct in_addr dest_ip;
+static struct ipv4_addr dest_ip;
static BOOL have_ip;
static int smb_port = 0;
static BOOL got_user;
struct smbcli_state *c;
struct nmb_name called, calling;
char *server_n;
- struct in_addr ip;
+ struct ipv4_addr ip;
pstring server;
char *share;
asprintf(&smbmnt_path, "%s/smbmnt", dyn_BINDIR);
- if (file_exist(smbmnt_path, NULL)) {
+ if (file_exist(smbmnt_path)) {
execv(smbmnt_path, args);
fprintf(stderr,
"smbfs/init_mount: execv of %s failed. Error was %s.",
sscanf(p, "%d", &fd);
close_it = False;
} else if ((p = getenv("PASSWD_FILE")) != NULL) {
- fd = sys_open(p, O_RDONLY, 0);
+ fd = open(p, O_RDONLY, 0);
pstrcpy(spec, p);
if (fd < 0) {
fprintf(stderr, "Error opening PASSWD_FILE %s: %s\n",