From 7d5adf8dec81aa5b7863550aaa7b579b82e3ab80 Mon Sep 17 00:00:00 2001 From: Marcin Gryszkalis Date: Mon, 18 Jan 2010 10:15:29 +0100 Subject: s3: Show share path in swat statuspage --- source3/web/statuspage.c | 11 +++++++---- 1 file 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(""); push_utf8_talloc(talloc_tos(), &utf8_fname, fname, &converted_size); - printf("%s%s\n", - utf8_fname,tstring(talloc_tos(),e->time.tv_sec)); + push_utf8_talloc(talloc_tos(), &utf8_sharepath, sharepath, + &converted_size); + printf("%s%s%s\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("

%s

\n", _("Open Files")); printf("\n"); - printf("\n", - _("PID"), _("UID"), _("Sharing"), _("R/W"), _("Oplock"), _("File"), _("Date")); + printf("\n", + _("PID"), _("UID"), _("Sharing"), _("R/W"), _("Oplock"), _("Share"), _("File"), _("Date")); locking_init_readonly(); share_mode_forall(print_share_mode, NULL); -- cgit
%s%s%s%s%s%s%s
%s%s%s%s%s%s%s%s