Changeset 42205 for branches/eam_branches/ipp-20220316
- Timestamp:
- May 17, 2022, 3:28:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/ippTools/src/pxadmin.c
r26981 r42205 184 184 psString dbName = name->data.str; 185 185 186 // if name is e.g., gpc1, strcasecmp returns FALSE 187 bool allowDelete = true; 188 allowDelete = allowDelete && strcasecmp(dbName, "gpc1"); 189 allowDelete = allowDelete && strcasecmp(dbName, "gpc2"); 190 allowDelete = allowDelete && strcasecmp(dbName, "nebulous"); 191 allowDelete = allowDelete && strcasecmp(dbName, "isp"); 192 allowDelete = allowDelete && strcasecmp(dbName, "ssp"); 193 allowDelete = allowDelete && strcasecmp(dbName, "uic"); 194 allowDelete = allowDelete && strcasecmp(dbName, "hsc_v1"); 195 allowDelete = allowDelete && strcasecmp(dbName, "megacam_v1"); 196 197 if (!allowDelete) { 198 fprintf (stdout, "**** WARNING: not allowed to delete database %s.\n", dbName); 199 return false; 200 } 201 186 202 fprintf(stdout, "*** delete the tables from database %s? ***\n", dbName); 187 203 fprintf(stdout, "*** to delete the tables, answer YES, and give password ***\n");
Note:
See TracChangeset
for help on using the changeset viewer.
