summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/Makefile.in3
-rw-r--r--source3/client/smbmnt.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index d54584c853..46cbfcd210 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -381,8 +381,7 @@ CUPS_OBJ = client/smbspool.o $(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
MOUNT_OBJ = client/smbmount.o \
$(PARAM_OBJ) $(LIBSMB_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
-MNT_OBJ = client/smbmnt.o \
- $(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
+MNT_OBJ = client/smbmnt.o
UMOUNT_OBJ = client/smbumount.o \
$(PARAM_OBJ) $(UBIQX_OBJ) $(LIB_OBJ)
diff --git a/source3/client/smbmnt.c b/source3/client/smbmnt.c
index 36248987b1..ba2b1e9435 100644
--- a/source3/client/smbmnt.c
+++ b/source3/client/smbmnt.c
@@ -111,13 +111,13 @@ fullpath(const char *p)
OK then we change into that directory - this prevents race conditions */
static int mount_ok(char *mount_point)
{
- SMB_STRUCT_STAT st;
+ struct stat st;
if (chdir(mount_point) != 0) {
return -1;
}
- if (sys_stat(".", &st) != 0) {
+ if (stat(".", &st) != 0) {
return -1;
}