Patch for showing Username instead of UID in 'smbstatus -L'
amitkuma at redhat.com
Thu Jul 5 08:35:16 UTC 2018
On 07/05/2018 08:53 AM, Amit wrote:
> 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?
> Amit Kumar
> !!If you stumble, get back up.
> What happened yesterday, no longer matters.
> Today is another day to move closer to your GOAL!!
!!If you stumble, get back up.
What happened yesterday, no longer matters.
Today is another day to move closer to your GOAL!!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 812 bytes
Desc: not available
More information about the samba-technical