Changeset 481 for trunk/src/sh_database.c
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_database.c
r454 r481 180 180 { NULL, N_("link_old"), 0, 49, MAX_PATH_STORE+1, 0, offsetof(struct dbins_, link_old)}, 181 181 { NULL, N_("link_new"), 0, 50, MAX_PATH_STORE+1, 0, offsetof(struct dbins_, link_new)}, 182 182 183 /* These go into dbins.ulong_data[n - START_SEC_LONGS] */ 183 184 { NULL, N_("size_old"), 0, 51, 0, 0, 0 }, 184 185 { NULL, N_("size_new"), 0, 52, 0, 0, 0 }, … … 201 202 { NULL, N_("port"), 0, 67, 0, 0, 0 }, 202 203 { NULL, N_("return_code"), 0, 68, 0, 0, 0 }, 203 /* { NULL, N_("userid"), 0, 69, 0, 0 }, old 'userid', 1.8.1 */ 204 205 { NULL, N_("host"), 0, 70, 64, 0, offsetof(struct dbins_, fromhost)}, 206 { NULL, N_("attr_old"), 0, 71, 16, 0, offsetof(struct dbins_, attr_old)}, 207 { NULL, N_("attr_new"), 0, 72, 16, 0, offsetof(struct dbins_, attr_new)}, 208 { NULL, N_("acl_old"), 0, 73, 1024, 0, offsetof(struct dbins_, acl_old)}, 209 { NULL, N_("acl_new"), 0, 74, 1024, 0, offsetof(struct dbins_, acl_new)}, 204 205 { NULL, N_("checkflags_old"), 0, 69, 0, 0, 0 }, 206 { NULL, N_("checkflags_new"), 0, 70, 0, 0, 0 }, 207 208 /* END_SEC_LONGS */ 209 210 { NULL, N_("host"), 0, 71, 64, 0, offsetof(struct dbins_, fromhost)}, 211 { NULL, N_("attr_old"), 0, 72, 16, 0, offsetof(struct dbins_, attr_old)}, 212 { NULL, N_("attr_new"), 0, 73, 16, 0, offsetof(struct dbins_, attr_new)}, 213 { NULL, N_("acl_old"), 0, 74, 1024, 0, offsetof(struct dbins_, acl_old)}, 214 { NULL, N_("acl_new"), 0, 75, 1024, 0, offsetof(struct dbins_, acl_new)}, 210 215 211 216 { NULL, NULL, 0, 0, 0, 0, 0 } 212 217 }; 213 218 214 #define SH_SLOT_HOST 70 219 #define SH_SLOT_CHECKFLAGS 69 220 221 /* need special attention b/o reserved SQL words */ 222 #define SH_SLOT_HOST 71 215 223 #define SH_SLOT_GROUP 7 224 225 /* these go into dbins.ulong_data[n-START_SEC_LONGS */ 216 226 #define START_SEC_LONGS 51 217 #define END_SEC_LONGS 68227 #define END_SEC_LONGS 70 218 228 219 229 #if defined(HAVE_INT_32) … … 1163 1173 } 1164 1174 1165 if (flag_err_debug == S L_TRUE)1175 if (flag_err_debug == S_TRUE) 1166 1176 { 1167 1177 p = mysql_info (db_conn); … … 1360 1370 while (attr_tab[i].attr != NULL) 1361 1371 { 1372 if (SH_SLOT_CHECKFLAGS == attr_tab[i].val) { 1373 if (db_entry->ulong_data[attr_tab[i].val-START_SEC_LONGS] == 0 && 1374 db_entry->ulong_data[attr_tab[i+1].val-START_SEC_LONGS] == 0) 1375 { i+= 2; continue; } 1376 } 1377 1362 1378 if (attr_tab[i].size != 0) 1363 1379 { … … 1728 1744 (size_t) res->size); 1729 1745 } 1730 else if (res->val >= START_SEC_LONGS )1746 else if (res->val >= START_SEC_LONGS && res->val <= END_SEC_LONGS) 1731 1747 { 1732 1748 db_entry->ulong_data[res->val-START_SEC_LONGS] 1733 = strtoul(&p[j+2], (char **) NULL, 10); 1734 /* atol(&p[j+2]); */ 1749 = strtoul(&p[j+2], (char **) NULL, 0); 1735 1750 } 1736 1751
Note:
See TracChangeset
for help on using the changeset viewer.