summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_default.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 12:35:09 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:08 +0200
commit5c89d12ca43e7949ace93c75ce59ca9fc0606521 (patch)
treed08c0610644be2b67b66b32cb3f92cb91c2525ab /source3/modules/vfs_default.c
parente1b7a5c750cf1dc09d7e14909234c7079ee9fabf (diff)
downloadsamba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.tar.gz
samba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.tar.bz2
samba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.zip
build: Remove sys_ftruncate wrapper
Diffstat (limited to 'source3/modules/vfs_default.c')
-rw-r--r--source3/modules/vfs_default.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 568f346452..f5a64759be 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -1386,7 +1386,7 @@ static int strict_allocate_ftruncate(vfs_handle_struct *handle, files_struct *fs
/* Shrink - just ftruncate. */
if (pst->st_ex_size > len)
- return sys_ftruncate(fsp->fh->fd, len);
+ return ftruncate(fsp->fh->fd, len);
space_to_write = len - pst->st_ex_size;
@@ -1444,12 +1444,12 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_O
}
/* we used to just check HAVE_FTRUNCATE_EXTEND and only use
- sys_ftruncate if the system supports it. Then I discovered that
+ ftruncate if the system supports it. Then I discovered that
you can have some filesystems that support ftruncate
expansion and some that don't! On Linux fat can't do
ftruncate extend but ext2 can. */
- result = sys_ftruncate(fsp->fh->fd, len);
+ result = ftruncate(fsp->fh->fd, len);
if (result == 0)
goto done;
@@ -1480,7 +1480,7 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_O
}
if (pst->st_ex_size > len) {
- /* the sys_ftruncate should have worked */
+ /* the ftruncate should have worked */
goto done;
}