Lines 711-722
Link Here
|
711 |
db_user = strsep(&tmp, ":"); |
711 |
db_user = strsep(&tmp, ":"); |
712 |
db_pwd = strsep(&tmp, ":"); |
712 |
db_pwd = strsep(&tmp, ":"); |
713 |
db_host = strsep(&tmp, ":"); |
713 |
db_host = strsep(&tmp, ":"); |
714 |
db_tmp = strsep(&tmp, ":"); |
|
|
715 |
db_name = strsep(&tmp, ":"); |
714 |
db_name = strsep(&tmp, ":"); |
716 |
db_table = strsep(&tmp, ":"); |
715 |
db_table = strsep(&tmp, ":"); |
717 |
db_port = atoi(db_tmp); |
716 |
db_port = atoi(db_tmp); |
718 |
|
717 |
|
719 |
if (!db_user || !db_pwd || !db_host || !db_tmp || !db_name || !db_table) { |
718 |
if (!db_user || !db_pwd || !db_host || !db_port || !db_name || !db_table) { |
720 |
fterr_warnx("Missing field in dbaseURI, expecting user:pwd:host:port:name:table."); |
719 |
fterr_warnx("Missing field in dbaseURI, expecting user:pwd:host:port:name:table."); |
721 |
return -1; |
720 |
return -1; |
722 |
} |
721 |
} |
Lines 892-898
Link Here
|
892 |
db_name = strsep(&tmp, ":"); |
891 |
db_name = strsep(&tmp, ":"); |
893 |
db_table = strsep(&tmp, ":"); |
892 |
db_table = strsep(&tmp, ":"); |
894 |
|
893 |
|
895 |
if (!db_user || !db_pwd || !db_host || !db_tmp || !db_name || !db_table) { |
894 |
if (!db_user || !db_pwd || !db_host || !db_port || !db_name || !db_table) { |
896 |
fterr_warnx("Missing field in dbaseURI, expecting user:pwd:host:port:name:table."); |
895 |
fterr_warnx("Missing field in dbaseURI, expecting user:pwd:host:port:name:table."); |
897 |
return -1; |
896 |
return -1; |
898 |
} |
897 |
} |