summaryrefslogtreecommitdiffstats
path: root/source/utils/status.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-01-23 14:02:17 +0000
committerGerald Carter <jerry@samba.org>2006-01-23 14:02:17 +0000
commite6d82c2061d217b7ef4403a98cd7ded0d6125a2c (patch)
treebb3aef68e8f00d7c6c7ffa6b0cf07fd464067d5b /source/utils/status.c
parent51763121149c4c0031804f338f17b2b066f17dee (diff)
downloadsamba-e6d82c2061d217b7ef4403a98cd7ded0d6125a2c.tar.gz
samba-e6d82c2061d217b7ef4403a98cd7ded0d6125a2c.tar.xz
samba-e6d82c2061d217b7ef4403a98cd7ded0d6125a2c.zip
r13081: correct fix for the segv in nmbd caused by a double free on namerec.
Diffstat (limited to 'source/utils/status.c')
-rw-r--r--source/utils/status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/utils/status.c b/source/utils/status.c
index f19a217aa65..b9f1c161e48 100644
--- a/source/utils/status.c
+++ b/source/utils/status.c
@@ -103,13 +103,13 @@ static void print_share_mode(const struct share_mode_entry *e, const char *share
static int count;
if (count==0) {
d_printf("Locked files:\n");
- d_printf("Pid DenyMode Access R/W Oplock SharePath Name\n");
- d_printf("----------------------------------------------------------------------------------\n");
+ d_printf("Pid DenyMode Access R/W Oplock SharePath Name\n");
+ d_printf("----------------------------------------------------------------------------------------\n");
}
count++;
if (Ucrit_checkPid(procid_to_pid(&e->pid))) {
- d_printf("%s ",procid_str_static(&e->pid));
+ d_printf("%-11s ",procid_str_static(&e->pid));
switch (map_share_mode_to_deny_mode(e->share_access,
e->private_options)) {
case DENY_NONE: d_printf("DENY_NONE "); break;
@@ -166,7 +166,7 @@ static void print_brl(SMB_DEV_T dev, SMB_INO_T ino, struct process_id pid,
}
count++;
- d_printf("%s %05x:%05x %s %9.0f %9.0f\n",
+ d_printf("%08s %05x:%05x %s %9.0f %9.0f\n",
procid_str_static(&pid), (int)dev, (int)ino,
lock_type==READ_LOCK?"R":"W",
(double)start, (double)size);