svn commit: samba r19982 - in branches/SAMBA_3_0/source/lib: .

metze at samba.org metze at samba.org
Fri Dec 1 15:12:23 GMT 2006


Author: metze
Date: 2006-12-01 15:12:22 +0000 (Fri, 01 Dec 2006)
New Revision: 19982

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19982

Log:
>From Michael Adam (ma at sernet.de) (thanks!:-)

  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/source/lib/sysquotas_linux.c


Changeset:
Modified: branches/SAMBA_3_0/source/lib/sysquotas_linux.c
===================================================================
--- branches/SAMBA_3_0/source/lib/sysquotas_linux.c	2006-12-01 15:11:20 UTC (rev 19981)
+++ branches/SAMBA_3_0/source/lib/sysquotas_linux.c	2006-12-01 15:12:22 UTC (rev 19982)
@@ -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);
 				}
 			}
 



More information about the samba-cvs mailing list