diff options
author | Jeremy Allison <jra@samba.org> | 2001-11-07 23:47:20 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-11-07 23:47:20 +0000 |
commit | 970ec14b4ba1ccf66820384ced8442e1878c09cd (patch) | |
tree | c799b0d92e3e7ef01bc3d8610f32f8e3d2e1823d | |
parent | 3fd96a47543c268fd2828793df4006cc47a9e95b (diff) | |
download | samba-970ec14b4ba1ccf66820384ced8442e1878c09cd.tar.gz samba-970ec14b4ba1ccf66820384ced8442e1878c09cd.tar.xz samba-970ec14b4ba1ccf66820384ced8442e1878c09cd.zip |
Added debug in truncate, fixed warning with gcc3.
Jeremy.
-rw-r--r-- | source/passdb/pdb_nisplus.c | 3 | ||||
-rw-r--r-- | source/smbd/vfs.c | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/passdb/pdb_nisplus.c b/source/passdb/pdb_nisplus.c index eceb1ea546b..6a97bd02b83 100644 --- a/source/passdb/pdb_nisplus.c +++ b/source/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/source/smbd/vfs.c b/source/smbd/vfs.c index 02a78c4cd37..37cee4918b9 100644 --- a/source/smbd/vfs.c +++ b/source/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); |