Skip to content

Commit

Permalink
Merge pull request #5 from AleksArt000/main
Browse files Browse the repository at this point in the history
added check for nobody
  • Loading branch information
AleksArt000 authored Aug 21, 2024
2 parents 8c709f2 + 9204f84 commit a91260e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ int xrename(char* old_path,char* new_path) {
int owner = st.st_uid;
int group = st.st_gid;

if (owner == 65534)
{
owner = 0;
}
if (group == 65534)
{
group = 0;
}

char* buffer = malloc(size);

FILE *old_ptr;
Expand Down

0 comments on commit a91260e

Please sign in to comment.