Skip to content

Commit ab02f8a

Browse files
Some notice info added.
1 parent e64657b commit ab02f8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pCloudCC/lib/pclsync/pcompat.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,12 @@ int psync_user_is_admin(){
127127
return 1;
128128
return 0;
129129
#else
130-
if (geteuid() == 0)
130+
__uid_t uid;
131+
if ((uid = geteuid()) == 0) {
132+
debug(D_NOTICE, "Root effective user detected! Uid is %d", uid);
131133
return 1;
134+
}
135+
debug(D_NOTICE, "Non root effective user. Uid is %d", uid);
132136
return 0;
133137
#endif
134138
}

0 commit comments

Comments
 (0)