summaryrefslogtreecommitdiff
path: root/src/commands/id.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-04-28 00:39:56 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-04-28 00:39:56 -0400
commit4e3e5f299081f9215a58acfe1b3c59f7aa3f4161 (patch)
treee69dce115a3e159afbf63a301deec0abec6770ab /src/commands/id.c
parentadded ls (diff)
downloadlazysphere-4e3e5f299081f9215a58acfe1b3c59f7aa3f4161.tar.gz
lazysphere-4e3e5f299081f9215a58acfe1b3c59f7aa3f4161.tar.bz2
lazysphere-4e3e5f299081f9215a58acfe1b3c59f7aa3f4161.zip
remove __ on uid and gid for alpine
Diffstat (limited to 'src/commands/id.c')
-rw-r--r--src/commands/id.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/id.c b/src/commands/id.c
index ab974b1..f1790bc 100644
--- a/src/commands/id.c
+++ b/src/commands/id.c
@@ -6,8 +6,8 @@
COMMAND_EMPTY(user_id) {
- __uid_t uid = getuid();
- __gid_t gid = getgid();
+ uid_t uid = getuid();
+ gid_t gid = getgid();
struct passwd* pw = getpwuid(uid);
if(pw == NULL){
@@ -17,7 +17,7 @@ COMMAND_EMPTY(user_id) {
int ngroups = 0;
getgrouplist(pw->pw_name, pw->pw_gid, NULL, &ngroups);
- __gid_t groups[ngroups];
+ gid_t groups[ngroups];
getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
struct group* ugr = getgrgid(gid);