Changeset 18908 for trunk/psModules/src/config/pmConfigCommand.c
- Timestamp:
- Aug 4, 2008, 5:45:56 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/config/pmConfigCommand.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/config/pmConfigCommand.c
r16611 r18908 13 13 PS_ASSERT_PTR_NON_NULL(command, false); 14 14 PS_ASSERT_PTR_NON_NULL(config, false); 15 PS_ASSERT_PTR_NON_NULL(config-> complete, false);15 PS_ASSERT_PTR_NON_NULL(config->user, false); 16 16 17 17 bool mdok; // Status of MD lookup 18 const char *dbserver = psMetadataLookupStr(&mdok, config-> complete, "DBSERVER"); // Database server18 const char *dbserver = psMetadataLookupStr(&mdok, config->user, "DBSERVER"); // Database server 19 19 if (!mdok || strlen(dbserver) == 0) { 20 20 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBSERVER in site configuration.\n"); 21 21 return false; 22 22 } 23 const char *dbname = psMetadataLookupStr(&mdok, config-> complete, "DBNAME"); // Database name23 const char *dbname = psMetadataLookupStr(&mdok, config->user, "DBNAME"); // Database name 24 24 if (!mdok || strlen(dbname) == 0) { 25 25 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBNAME in site configuration.\n"); 26 26 return false; 27 27 } 28 const char *dbuser = psMetadataLookupStr(&mdok, config-> complete, "DBUSER"); // Database user28 const char *dbuser = psMetadataLookupStr(&mdok, config->user, "DBUSER"); // Database user 29 29 if (!mdok || strlen(dbuser) == 0) { 30 30 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBUSER in site configuration.\n"); 31 31 return false; 32 32 } 33 const char *dbpassword = psMetadataLookupStr(&mdok, config-> complete, "DBPASSWORD"); // Database password33 const char *dbpassword = psMetadataLookupStr(&mdok, config->user, "DBPASSWORD"); // Database password 34 34 if (!mdok || strlen(dbpassword) == 0) { 35 35 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find DBPASSWORD in site configuration.\n");
Note:
See TracChangeset
for help on using the changeset viewer.
