Browse Source

Merge branch 'lstat' of UBB/points into master

pull/1/head
Chris Cromer 2 years ago
committed by Gitea
parent
commit
b84ca04aeb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/read_file.c

+ 1
- 1
src/read_file.c View File

@ -173,7 +173,7 @@ int read_file(char *filename, point_t **points, unsigned int *n) {
int j = 0;
struct stat statbuff;
stat(filename, &statbuff);
lstat(filename, &statbuff);
if (access(filename, F_OK) || !S_ISREG(statbuff.st_mode)) {
fprintf(stderr, "Error: El archivo \"%s\" no existe!\n", filename);
return 1;


Loading…
Cancel
Save