summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-03-02 03:51:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:21 -0500
commit4d5654a8ab491364be5fd83e9894e9a46401f0f4 (patch)
tree209bd1a2527b68dabc05e67c901b5cb80fd3b6a6
parentb9408304db9a64d9b8ad56f53532825a02fdb150 (diff)
downloadsamba-4d5654a8ab491364be5fd83e9894e9a46401f0f4.tar.gz
samba-4d5654a8ab491364be5fd83e9894e9a46401f0f4.tar.xz
samba-4d5654a8ab491364be5fd83e9894e9a46401f0f4.zip
r21647: Allow unit on for size parameters.
-rw-r--r--source/modules/vfs_recycle.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/modules/vfs_recycle.c b/source/modules/vfs_recycle.c
index cc0a2a10e2b..b417b9cbff8 100644
--- a/source/modules/vfs_recycle.c
+++ b/source/modules/vfs_recycle.c
@@ -157,7 +157,8 @@ static SMB_OFF_T recycle_maxsize(vfs_handle_struct *handle)
{
SMB_OFF_T maxsize;
- maxsize = lp_parm_ulong(SNUM(handle->conn), "recycle", "maxsize", 0);
+ maxsize = conv_str_size(lp_parm_const_string(SNUM(handle->conn),
+ "recycle", "maxsize", NULL));
DEBUG(10, ("recycle: maxsize = %lu\n", maxsize));
@@ -168,7 +169,8 @@ static SMB_OFF_T recycle_minsize(vfs_handle_struct *handle)
{
SMB_OFF_T minsize;
- minsize = lp_parm_ulong(SNUM(handle->conn), "recycle", "minsize", 0);
+ minsize = conv_str_size(lp_parm_const_string(SNUM(handle->conn),
+ "recycle", "minsize", NULL));
DEBUG(10, ("recycle: minsize = %lu\n", minsize));