[1913] in Moira Commits
/svn/moira r4052 - trunk/moira/gen
daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Mon Sep 19 10:56:41 2011
Date: Mon, 19 Sep 2011 10:56:35 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>
Message-Id: <201109191456.p8JEuZ3f006987@drugstore.mit.edu>
To: moira-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: zacheiss
Date: 2011-09-19 10:56:35 -0400 (Mon, 19 Sep 2011)
New Revision: 4052
Modified:
trunk/moira/gen/warehouse-lists.pc
Log:
Replace field delimiter in list descriptions.
Modified: trunk/moira/gen/warehouse-lists.pc
===================================================================
--- trunk/moira/gen/warehouse-lists.pc 2011-09-08 18:46:37 UTC (rev 4051)
+++ trunk/moira/gen/warehouse-lists.pc 2011-09-19 14:56:35 UTC (rev 4052)
@@ -92,7 +92,7 @@
{
EXEC SQL BEGIN DECLARE SECTION;
char *l = list;
- int lid = id;
+ int lid = id, count;
char acl_type[LIST_ACL_TYPE_SIZE], modtime[LIST_MODTIME_SIZE];
char acl_name[STRINGS_STRING_SIZE], login[USERS_LOGIN_SIZE];
char principal[STRINGS_STRING_SIZE], description[LIST_DESCRIPTION_SIZE];
@@ -109,7 +109,13 @@
strtrim(acl_type);
strtrim(modtime);
strtrim(description);
-
+
+ for (count = 0; count < strlen(description); count++)
+ {
+ if (description[count] == '|')
+ description[count] = '-';
+ }
+
strcpy(acl_name, "NONE");
if (strcmp(acl_type, "LIST") == 0)
EXEC SQL SELECT name into :acl_name FROM list WHERE list_id = :acl_id;