Changeset 10074
- Timestamp:
- Nov 17, 2006, 6:04:14 PM (19 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
pxadminConfig.c (modified) (3 diffs)
-
pxtables.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxadminConfig.c
r10054 r10074 34 34 35 35 config->modules = pmConfigRead(&argc, argv); 36 36 37 37 38 if (! config->modules) { … … 97 98 } 98 99 100 psFree(arguments); 101 99 102 // define Database handle, if used 100 103 config->dbh = pmConfigDB(config->modules); … … 103 106 exit(EXIT_FAILURE); 104 107 } 105 106 config->args = arguments;107 108 108 109 return config; -
trunk/ippTools/src/pxtables.c
r10037 r10074 40 40 41 41 bool pxCreateTables(pxConfig *config) { 42 bool status = true;43 44 42 PS_ASSERT_PTR_NON_NULL(config, false); 45 43 … … 52 50 } 53 51 #endif 52 53 bool status = true; 54 54 CREATE_TABLE(summitExpCreateTable); 55 55 CREATE_TABLE(summitImfileCreateTable); … … 102 102 fgets (line, 128, stdin); 103 103 sscanf (line, "%s", answer); 104 if (strcmp (answer, "YES")) goto escape; 104 if (strcmp (answer, "YES")) { 105 psError(PS_ERR_UNKNOWN, true, "tables NOT deleleted"); 106 return false; 107 } 105 108 106 109 fprintf (stdout, "enter dbh connection password: "); … … 111 114 bool status; 112 115 psString dbPassword = psMetadataLookupStr(&status, config->modules->site, "DBPASSWORD"); 113 if (strcmp (answer, dbPassword)) goto escape; 114 psFree(dbPassword); 116 if (strcmp (answer, dbPassword)) { 117 psError(PS_ERR_UNKNOWN, true, "tables NOT deleleted"); 118 return false; 119 } 115 120 } 116 121 … … 151 156 152 157 return status; 153 154 escape:155 // XXX fix psMetadataLookupStr() to inc ref count156 // psFree(dbPassword);157 fprintf (stdout, "tables NOT deleted\n");158 159 return false;160 158 }
Note:
See TracChangeset
for help on using the changeset viewer.
