Page MenuHomeDevCentral

Allow to get current process username
ClosedPublic

Authored by dereckson on Feb 6 2022, 19:58.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 20:24
Unknown Object (File)
Sun, Nov 10, 13:32
Unknown Object (File)
Sun, Nov 10, 05:23
Unknown Object (File)
Sat, Nov 9, 09:20
Unknown Object (File)
Sat, Nov 9, 04:45
Unknown Object (File)
Mon, Nov 4, 04:44
Unknown Object (File)
Sun, Nov 3, 02:55
Unknown Object (File)
Thu, Oct 31, 10:26

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 Skipped
Unit
Tests Skipped
Branch
main
Build Status
Buildable 3892
Build 4143: arc lint + arc unit