Skip to content

Commit

Permalink
fixed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksArt000 committed Jun 20, 2024
1 parent e4bd4d4 commit 7517c40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ int mvsp(char* old_path,char* new_path, char* root)

new_ptr = fopen(new_path,"w");
fwrite(buffer, sizeof(char), size, new_ptr);
int result = fclose(new_ptr);

chown(new_path, getuid(), getgid());
chmod(new_path, 0755);
return fclose(new_ptr);
return result;
}
}

0 comments on commit 7517c40

Please sign in to comment.