Page MenuHomeDevCentral

Allow to get current process username
ClosedPublic

Authored by dereckson on Feb 6 2022, 19:58.
Tags
None
Referenced Files
F4019555: D2499.id6295.diff
Sat, Jan 18, 15:07
Unknown Object (File)
Fri, Jan 17, 14:22
Unknown Object (File)
Tue, Jan 14, 08:35
Unknown Object (File)
Mon, Jan 13, 15:10
Unknown Object (File)
Mon, Jan 13, 01:41
Unknown Object (File)
Sun, Jan 12, 11:36
Unknown Object (File)
Sat, Jan 11, 04:40
Unknown Object (File)
Thu, Jan 9, 05:50

Details

Summary

Use case

Zed is an application which allows users
to upload content. As such, it needs to
help the site administrator to configure
existence and permissions of target folders.

This method is provided to be used there
to geenrate a help message with the user
who could be chowned the directory to,
to provide a better solution than a chmod 0777.

See T1678.

Implementation notes

The command whoami is available on Windows too,
but shows domain\user information, replacing the
domain by hostname when the account is local to
the machine. We filter the domain part out, to be
coherent with Linux and UNIX output.

Diff Detail

Repository
rKOT Keruald OmniTools
Lint
Lint Not Applicable
Unit
Tests Not Applicable