Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/web/statuspage.c

    r615 r740  
    2020#include "includes.h"
    2121#include "web/swat_proto.h"
     22#include "libcli/security/security.h"
     23#include "locking/proto.h"
    2224
    2325#define _(x) lang_msg_rotate(talloc_tos(),x)
     
    124126{
    125127        char           *utf8_fname;
     128        char           *utf8_sharepath;
    126129        int deny_mode;
    127130        size_t converted_size;
     
    173176
    174177        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));
    177182        TALLOC_FREE(utf8_fname);
    178183}
     
    180185
    181186/* kill off any connections chosen by the user */
    182 static int traverse_fn1(struct db_record *rec,
    183                         const struct connections_key *key,
     187static int traverse_fn1(const struct connections_key *key,
    184188                        const struct connections_data *crec,
    185189                        void *private_data)
     
    197201
    198202/* traversal fn for showing machine connections */
    199 static int traverse_fn2(struct db_record *rec,
    200                         const struct connections_key *key,
     203static int traverse_fn2(const struct connections_key *key,
    201204                        const struct connections_data *crec,
    202205                        void *private_data)
     
    222225
    223226/* traversal fn for showing share connections */
    224 static int traverse_fn3(struct db_record *rec,
    225                         const struct connections_key *key,
     227static int traverse_fn3(const struct connections_key *key,
    226228                        const struct connections_data *crec,
    227229                        void *private_data)
     
    328330        }
    329331
    330         connections_forall(traverse_fn1, NULL);
     332        connections_forall_read(traverse_fn1, NULL);
    331333
    332334        initPid2Machine ();
     
    420422        printf("</tr>\n");
    421423
    422         connections_forall(traverse_fn2, NULL);
     424        connections_forall_read(traverse_fn2, NULL);
    423425
    424426        printf("</table><p>\n");
     
    429431                _("Share"), _("User"), _("Group"), _("PID"), _("Client"), _("Date"));
    430432
    431         connections_forall(traverse_fn3, NULL);
     433        connections_forall_read(traverse_fn3, NULL);
    432434
    433435        printf("</table><p>\n");
     
    435437        printf("<h3>%s</h3>\n", _("Open Files"));
    436438        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"));
    439441
    440442        locking_init_readonly();
Note: See TracChangeset for help on using the changeset viewer.