Skip to content

Commit

Permalink
修复权限问题!
Browse files Browse the repository at this point in the history
  • Loading branch information
chase535 authored Jan 26, 2023
1 parent 07a3685 commit 4e6e4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accurate_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void set_value(char *file, char *numb)
FILE *fn;
if(access(file, F_OK) == 0)
{
chmod(file, 777);
chmod(file, 0777);
fn = fopen(file, "wt");
if(fn != NULL)
{
Expand Down

0 comments on commit 4e6e4f0

Please sign in to comment.