Author: metze Date: 2006-12-01 15:11:20 +0000 (Fri, 01 Dec 2006) New Revision: 19981
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19981 Log: >From Michael Adam ([EMAIL PROTECTED]) Metze: as noted by "shattered" and discussed on the irc, here is a patch to lib/sysquotas_linux.c replacing some "get"s by "set"s. The other lib/sysquotas*.c files look ok to me. But in the linux variant, the problem is not in the actual call of quotactl but in the preparation of the respective "D" structs. This makes the difference between the get and set calls for SMB_USER_FS_QUOTA_TYPE and SMB_GROUP_FS_QUOTA_TYPE. metze Modified: branches/SAMBA_3_0_24/source/lib/sysquotas_linux.c Changeset: Modified: branches/SAMBA_3_0_24/source/lib/sysquotas_linux.c =================================================================== --- branches/SAMBA_3_0_24/source/lib/sysquotas_linux.c 2006-12-01 15:06:34 UTC (rev 19980) +++ branches/SAMBA_3_0_24/source/lib/sysquotas_linux.c 2006-12-01 15:11:20 UTC (rev 19981) @@ -526,9 +526,9 @@ case SMB_USER_FS_QUOTA_TYPE: id.uid = getuid(); - if ((ret=sys_get_linux_gen_quota(path, bdev, qtype, id, dp))) { - if ((ret=sys_get_linux_v2_quota(path, bdev, qtype, id, dp))) { - ret=sys_get_linux_v1_quota(path, bdev, qtype, id, dp); + if ((ret=sys_set_linux_gen_quota(path, bdev, qtype, id, dp))) { + if ((ret=sys_set_linux_v2_quota(path, bdev, qtype, id, dp))) { + ret=sys_set_linux_v1_quota(path, bdev, qtype, id, dp); } } @@ -541,9 +541,9 @@ case SMB_GROUP_FS_QUOTA_TYPE: id.gid = getgid(); - if ((ret=sys_get_linux_gen_quota(path, bdev, qtype, id, dp))) { - if ((ret=sys_get_linux_v2_quota(path, bdev, qtype, id, dp))) { - ret=sys_get_linux_v1_quota(path, bdev, qtype, id, dp); + if ((ret=sys_set_linux_gen_quota(path, bdev, qtype, id, dp))) { + if ((ret=sys_set_linux_v2_quota(path, bdev, qtype, id, dp))) { + ret=sys_set_linux_v1_quota(path, bdev, qtype, id, dp); } }