summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap/dbwrap_file.c4
-rw-r--r--source3/lib/system.c9
2 files changed, 2 insertions, 11 deletions
diff --git a/source3/lib/dbwrap/dbwrap_file.c b/source3/lib/dbwrap/dbwrap_file.c
index f7d207be7f..8e513b5ad2 100644
--- a/source3/lib/dbwrap/dbwrap_file.c
+++ b/source3/lib/dbwrap/dbwrap_file.c
@@ -209,8 +209,8 @@ static NTSTATUS db_file_store_root(int fd, TDB_DATA data)
return map_nt_error_from_unix(errno);
}
- if (sys_ftruncate(fd, data.dsize) != 0) {
- DEBUG(3, ("sys_ftruncate failed: %s\n", strerror(errno)));
+ if (ftruncate(fd, data.dsize) != 0) {
+ DEBUG(3, ("ftruncate failed: %s\n", strerror(errno)));
return map_nt_error_from_unix(errno);
}
diff --git a/source3/lib/system.c b/source3/lib/system.c
index feb745306a..1e2c30db2f 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -585,15 +585,6 @@ int sys_fallocate(int fd, enum vfs_fallocate_mode mode, SMB_OFF_T offset, SMB_OF
}
/*******************************************************************
- An ftruncate() wrapper.
-********************************************************************/
-
-int sys_ftruncate(int fd, SMB_OFF_T offset)
-{
- return ftruncate(fd, offset);
-}
-
-/*******************************************************************
An lseek() wrapper.
********************************************************************/