summaryrefslogtreecommitdiff
path: root/sysutils/ruby-quota/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/ruby-quota/patches/patch-ab')
-rw-r--r--sysutils/ruby-quota/patches/patch-ab22
1 files changed, 15 insertions, 7 deletions
diff --git a/sysutils/ruby-quota/patches/patch-ab b/sysutils/ruby-quota/patches/patch-ab
index 1cec9f1e49b..f572a3d6c25 100644
--- a/sysutils/ruby-quota/patches/patch-ab
+++ b/sysutils/ruby-quota/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.6 2010/03/21 14:49:10 taca Exp $
+$NetBSD: patch-ab,v 1.7 2010/04/21 05:34:31 taca Exp $
--- quota.c.orig 2002-03-30 14:59:12.000000000 +0000
+++ quota.c
@@ -49,7 +49,15 @@ $NetBSD: patch-ab,v 1.6 2010/03/21 14:49:10 taca Exp $
#endif
static VALUE rb_mQuota;
-@@ -159,7 +175,11 @@ rb_quotactl(int cmd, char *dev, VALUE vu
+@@ -144,7 +160,6 @@ rb_quotactl(int cmd, char *dev, VALUE vu
+ uid_t uid;
+
+ get_uid(vuid, &uid, &is_gid);
+- printf("cmd = %d, dev = %s, uid = %d, gid? = %d\n", cmd, dev, uid, is_gid);
+ if( is_gid ){
+ return quotactl(QCMD(cmd,GRPQUOTA),dev,(qid_t)uid,addr);
+ }
+@@ -159,7 +174,11 @@ rb_quotactl(int cmd, char *dev, VALUE vu
char *path;
int is_gid;
uid_t uid;
@@ -61,7 +69,7 @@ $NetBSD: patch-ab,v 1.6 2010/03/21 14:49:10 taca Exp $
int i, count, ret;
buff = 0;
-@@ -187,12 +207,16 @@ rb_quotactl(int cmd, char *dev, VALUE vu
+@@ -187,12 +206,16 @@ rb_quotactl(int cmd, char *dev, VALUE vu
static int
rb_quotactl(int cmd, char *dev, VALUE vuid, caddr_t addr)
{
@@ -79,7 +87,7 @@ $NetBSD: patch-ab,v 1.6 2010/03/21 14:49:10 taca Exp $
switch( cmd ){
case Q_QUOTAON:
case Q_QUOTAOFF:
-@@ -235,7 +259,9 @@ rb_diskquota_get(VALUE dqb, struct dqblk
+@@ -235,7 +258,9 @@ rb_diskquota_get(VALUE dqb, struct dqblk
#if defined(USE_LINUX_QUOTA)
c_dqb->dqb_bhardlimit = GetMember("bhardlimit");
c_dqb->dqb_bsoftlimit = GetMember("bsoftlimit");
@@ -90,7 +98,7 @@ $NetBSD: patch-ab,v 1.6 2010/03/21 14:49:10 taca Exp $
c_dqb->dqb_curblocks = GetMember("curblocks");
#endif
c_dqb->dqb_ihardlimit = GetMember("ihardlimit");
-@@ -274,7 +300,7 @@ rb_diskquota_new(struct dqblk *c_dqb)
+@@ -274,7 +299,7 @@ rb_diskquota_new(struct dqblk *c_dqb)
dqb = rb_struct_new(rb_sDiskQuota,
UINT2NUM(c_dqb->dqb_bhardlimit),
UINT2NUM(c_dqb->dqb_bsoftlimit),
@@ -99,7 +107,7 @@ $NetBSD: patch-ab,v 1.6 2010/03/21 14:49:10 taca Exp $
UINT2NUM(c_dqb->dqb_curspace),
#else
UINT2NUM(c_dqb->dqb_curblocks),
-@@ -442,7 +468,7 @@ Init_quota()
+@@ -442,7 +467,7 @@ Init_quota()
"curinodes",
"btimelimit",
"itimelimit",
@@ -108,7 +116,7 @@ $NetBSD: patch-ab,v 1.6 2010/03/21 14:49:10 taca Exp $
/* for compatibility */
#define DQ_ALIAS(a,b) rb_alias(rb_sDiskQuota,rb_intern(#a),rb_intern(#b))
-@@ -454,7 +480,7 @@ Init_quota()
+@@ -454,7 +479,7 @@ Init_quota()
DQ_ALIAS(fsoftlimit=, isoftlimit=);
DQ_ALIAS(curfiles=, curinodes=);
DQ_ALIAS(ftimelimit=, itimelimit=);