Changeset 740 for vendor/current/source3/web/statuspage.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/web/statuspage.c
r615 r740 20 20 #include "includes.h" 21 21 #include "web/swat_proto.h" 22 #include "libcli/security/security.h" 23 #include "locking/proto.h" 22 24 23 25 #define _(x) lang_msg_rotate(talloc_tos(),x) … … 124 126 { 125 127 char *utf8_fname; 128 char *utf8_sharepath; 126 129 int deny_mode; 127 130 size_t converted_size; … … 173 176 174 177 push_utf8_talloc(talloc_tos(), &utf8_fname, fname, &converted_size); 175 printf("<td>%s</td><td>%s</td></tr>\n", 176 utf8_fname,tstring(talloc_tos(),e->time.tv_sec)); 178 push_utf8_talloc(talloc_tos(), &utf8_sharepath, sharepath, 179 &converted_size); 180 printf("<td>%s</td><td>%s</td><td>%s</td></tr>\n", 181 utf8_sharepath,utf8_fname,tstring(talloc_tos(),e->time.tv_sec)); 177 182 TALLOC_FREE(utf8_fname); 178 183 } … … 180 185 181 186 /* kill off any connections chosen by the user */ 182 static int traverse_fn1(struct db_record *rec, 183 const struct connections_key *key, 187 static int traverse_fn1(const struct connections_key *key, 184 188 const struct connections_data *crec, 185 189 void *private_data) … … 197 201 198 202 /* traversal fn for showing machine connections */ 199 static int traverse_fn2(struct db_record *rec, 200 const struct connections_key *key, 203 static int traverse_fn2(const struct connections_key *key, 201 204 const struct connections_data *crec, 202 205 void *private_data) … … 222 225 223 226 /* traversal fn for showing share connections */ 224 static int traverse_fn3(struct db_record *rec, 225 const struct connections_key *key, 227 static int traverse_fn3(const struct connections_key *key, 226 228 const struct connections_data *crec, 227 229 void *private_data) … … 328 330 } 329 331 330 connections_forall (traverse_fn1, NULL);332 connections_forall_read(traverse_fn1, NULL); 331 333 332 334 initPid2Machine (); … … 420 422 printf("</tr>\n"); 421 423 422 connections_forall (traverse_fn2, NULL);424 connections_forall_read(traverse_fn2, NULL); 423 425 424 426 printf("</table><p>\n"); … … 429 431 _("Share"), _("User"), _("Group"), _("PID"), _("Client"), _("Date")); 430 432 431 connections_forall (traverse_fn3, NULL);433 connections_forall_read(traverse_fn3, NULL); 432 434 433 435 printf("</table><p>\n"); … … 435 437 printf("<h3>%s</h3>\n", _("Open Files")); 436 438 printf("<table border=1>\n"); 437 printf("<tr><th>%s</th><th>%s</th><th>%s</th><th>%s</th><th>%s</th><th>%s</th><th>%s</th>< /tr>\n",438 _("PID"), _("UID"), _("Sharing"), _("R/W"), _("Oplock"), _(" File"), _("Date"));439 printf("<tr><th>%s</th><th>%s</th><th>%s</th><th>%s</th><th>%s</th><th>%s</th><th>%s</th><th>%s</th></tr>\n", 440 _("PID"), _("UID"), _("Sharing"), _("R/W"), _("Oplock"), _("Share"), _("File"), _("Date")); 439 441 440 442 locking_init_readonly();
Note:
See TracChangeset
for help on using the changeset viewer.