summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMarcin Gryszkalis <mg@fork.pl>2010-01-18 10:15:29 +0100
committerVolker Lendecke <vl@samba.org>2010-01-18 10:17:05 +0100
commit7d5adf8dec81aa5b7863550aaa7b579b82e3ab80 (patch)
treebc3c42897f3bf7ffaf87baaefaf2c93c46994e8e /source3
parent971f6a4a5bd348b2e45ad8e9f354c714c8cf9e2c (diff)
downloadsamba-7d5adf8dec81aa5b7863550aaa7b579b82e3ab80.tar.gz
samba-7d5adf8dec81aa5b7863550aaa7b579b82e3ab80.tar.bz2
samba-7d5adf8dec81aa5b7863550aaa7b579b82e3ab80.zip
s3: Show share path in swat statuspage
Diffstat (limited to 'source3')
-rw-r--r--source3/web/statuspage.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c
index 590be1dde2..f94ffb7926 100644
--- a/source3/web/statuspage.c
+++ b/source3/web/statuspage.c
@@ -123,6 +123,7 @@ static void print_share_mode(const struct share_mode_entry *e,
void *dummy)
{
char *utf8_fname;
+ char *utf8_sharepath;
int deny_mode;
size_t converted_size;
@@ -172,8 +173,10 @@ static void print_share_mode(const struct share_mode_entry *e,
printf("</td>");
push_utf8_talloc(talloc_tos(), &utf8_fname, fname, &converted_size);
- printf("<td>%s</td><td>%s</td></tr>\n",
- utf8_fname,tstring(talloc_tos(),e->time.tv_sec));
+ push_utf8_talloc(talloc_tos(), &utf8_sharepath, sharepath,
+ &converted_size);
+ printf("<td>%s</td><td>%s</td><td>%s</td></tr>\n",
+ utf8_sharepath,utf8_fname,tstring(talloc_tos(),e->time.tv_sec));
TALLOC_FREE(utf8_fname);
}
@@ -427,8 +430,8 @@ void status_page(void)
printf("<h3>%s</h3>\n", _("Open Files"));
printf("<table border=1>\n");
- 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",
- _("PID"), _("UID"), _("Sharing"), _("R/W"), _("Oplock"), _("File"), _("Date"));
+ 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",
+ _("PID"), _("UID"), _("Sharing"), _("R/W"), _("Oplock"), _("Share"), _("File"), _("Date"));
locking_init_readonly();
share_mode_forall(print_share_mode, NULL);