summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-07 23:47:20 +0000
committerJeremy Allison <jra@samba.org>2001-11-07 23:47:20 +0000
commit3343d0281d460559f6893a136991ef6492639bbe (patch)
tree44873f53cc01e21cbd6f4109723e0357918b9535 /source3
parent2113e2ba08fc5e55c9f1b4d1f70d87683f48d4d3 (diff)
downloadsamba-3343d0281d460559f6893a136991ef6492639bbe.tar.gz
samba-3343d0281d460559f6893a136991ef6492639bbe.tar.bz2
samba-3343d0281d460559f6893a136991ef6492639bbe.zip
Added debug in truncate, fixed warning with gcc3.
Jeremy. (This used to be commit 970ec14b4ba1ccf66820384ced8442e1878c09cd)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_nisplus.c3
-rw-r--r--source3/smbd/vfs.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_nisplus.c b/source3/passdb/pdb_nisplus.c
index eceb1ea546..6a97bd02b8 100644
--- a/source3/passdb/pdb_nisplus.c
+++ b/source3/passdb/pdb_nisplus.c
@@ -375,8 +375,7 @@ static BOOL make_sam_from_nisp_object(SAM_ACCOUNT *pw_buf, const nis_object *obj
if (!(pdb_get_acct_ctrl(pw_buf) & ACB_PWNOTREQ) &&
strncasecmp(ptr, "NO PASSWORD", 11)) {
if (strlen(ptr) != 32 || !pdb_gethexpwd(ptr, smbntpwd)) {
- DEBUG(0, ("malformed NT pwd entry:
- uid = %d.\n",
+ DEBUG(0, ("malformed NT pwd entry: uid = %d.\n",
pdb_get_uid(pw_buf)));
return False;
}
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 02a78c4cd3..37cee4918b 100644
--- a/source3/smbd/vfs.c
+++ b/source3/smbd/vfs.c
@@ -386,6 +386,7 @@ int vfs_set_filelen(files_struct *fsp, SMB_OFF_T len)
int ret;
release_level_2_oplocks_on_change(fsp);
+ DEBUG(10,("vfs_set_filelen: ftruncate %s to len %.0f\n", fsp->fsp_name, (double)len));
if ((ret = fsp->conn->vfs_ops.ftruncate(fsp, fsp->fd, len)) != -1)
set_filelen_write_cache(fsp, len);