Skip to content

Commit

Permalink
fixing weird bug inshallah
Browse files Browse the repository at this point in the history
  • Loading branch information
palkh committed Jul 24, 2024
1 parent 9fd7990 commit 8c65ad3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,8 @@ int mvlink(char* old_path,char* new_path)
char* new_link_abs = NULL;
new_link_abs = realpath(new_link,NULL);
if (new_link_abs == NULL) {
msg(ERROR,"Error getting absolute path");
perror("realpath");
return -1;
msg(WARNING,"Error getting absolute path");
new_link_abs = strdup(new_link);
}

if (new_link_abs == NULL) {
Expand Down

0 comments on commit 8c65ad3

Please sign in to comment.