Patch for showing Username instead of UID in 'smbstatus -L'

Amit amitkuma at
Thu Jul 5 03:23:08 UTC 2018

Yup sorry i missed. It was %-9s in my tests..

On 07/04/2018 07:32 PM, Volker Lendecke wrote:
> On Wed, Jul 04, 2018 at 05:57:39PM +0530, Amit via samba-technical wrote:
>>                 struct server_id_buf tmp;
>>                 d_printf("%-11s  ", server_id_str_buf(e->pid, &tmp));
>> -               d_printf("%-9u  ", (unsigned int)e->uid);
>> +               d_printf("%-9u  ", uidtoname(e->uid));
> This looks fishy. %-9u being given a string should generate a warning
> in the build. Can you re-check?
> Volker

Amit Kumar
!!If you stumble, get back up. 
What happened yesterday, no longer matters.
Today is another day to move closer to your GOAL!!

More information about the samba-technical mailing list