From 138017efd8166f248d6a1706e5851f2074ad1b34 Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Wed, 15 May 2013 18:16:00 -0400 Subject: [PATCH 1/1] Remove FOREIGN It has been unused since the original import of IBM's code. Change-Id: Ieec597c76e53453d012f1cd86f6860ae60dade5c Reviewed-on: http://gerrit.openafs.org/9918 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/ptserver/pts.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/ptserver/pts.c b/src/ptserver/pts.c index 6504de3..f495a97 100644 --- a/src/ptserver/pts.c +++ b/src/ptserver/pts.c @@ -31,8 +31,6 @@ #include "pterror.h" #include "ptprototypes.h" -#undef FOREIGN - char *whoami; int force = 0; @@ -793,9 +791,6 @@ CheckEntry(struct cmd_syndesc *as, void *arock) printf(", group quota: unlimited"); else printf(", group quota: %d", aentry.ngroups); -#if FOREIGN - printf(", foreign user quota=%d", aentry.nusers); -#endif printf(".\n"); } @@ -1003,17 +998,6 @@ SetFields(struct cmd_syndesc *as, void *arock) } mask |= PR_SF_NGROUPS; } -#if FOREIGN - if (as->parms[3].items) { /* limitgroups */ - code = util_GetInt32(as->parms[3].items->data, &nusers); - if (code) { - afs_com_err(whoami, code, "because nusers was: '%s'", - as->parms[3].items->data); - return code; - } - mask |= PR_SF_NUSERS; - } -#endif for (i = 0; i < ids.idlist_len; i++) { afs_int32 id = ids.idlist_val[i]; @@ -1226,10 +1210,6 @@ main(int argc, char **argv) cmd_AddParm(ts, "-access", CMD_SINGLE, CMD_OPTIONAL, "set privacy flags"); cmd_AddParm(ts, "-groupquota", CMD_SINGLE, CMD_OPTIONAL, "set limit on group creation"); -#if FOREIGN - cmd_AddParm(ts, "-userquota", CMD_SINGLE, CMD_OPTIONAL, - "set limit on foreign user creation"); -#endif add_std_args(ts); ts = cmd_CreateSyntax("listowned", ListOwned, NULL, 0, -- 1.9.4