diff options
Diffstat (limited to 'source3/lib/dbwrap/dbwrap_file.c')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_file.c | 4 |
1 files changed, 2 insertions, 2 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); } |