summaryrefslogtreecommitdiff
path: root/source3/passdb
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/passdb
parente1b7a5c750cf1dc09d7e14909234c7079ee9fabf (diff)
downloadsamba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.tar.gz
samba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.tar.bz2
samba-5c89d12ca43e7949ace93c75ce59ca9fc0606521.zip
build: Remove sys_ftruncate wrapper
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c
index c1dabc4dff..789374a75f 100644
--- a/source3/passdb/pdb_smbpasswd.c
+++ b/source3/passdb/pdb_smbpasswd.c
@@ -706,7 +706,7 @@ Error was %s\n", newpwd->smb_name, pfile, strerror(errno)));
Error was %s\n", wr_len, newpwd->smb_name, pfile, strerror(errno)));
/* Remove the entry we just wrote. */
- if(sys_ftruncate(fd, offpos) == -1) {
+ if(ftruncate(fd, offpos) == -1) {
DEBUG(0, ("add_smbfilepwd_entry: ERROR failed to ftruncate file %s. \
Error was %s. Password file may be corrupt ! Please examine by hand !\n",
newpwd->smb_name, strerror(errno)));