Changeset 42387 for trunk/ippTools/src/pxadmin.c
- Timestamp:
- Feb 8, 2023, 12:14:39 PM (3 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20220316/ippTools (added) merged: 42166,42193,42195-42197,42205-42207,42213,42258,42367
- Property svn:mergeinfo changed
-
trunk/ippTools/src
- Property svn:ignore
-
old new 49 49 fftool 50 50 remotetool 51 51 fpcamtool
-
- Property svn:mergeinfo changed
/branches/eam_branches/ipp-20220316/ippTools/src (added) merged: 42166,42195-42197,42205,42207,42258,42367
- Property svn:ignore
-
trunk/ippTools/src/pxadmin.c
r26981 r42387 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.
