Use tilde-expanded path in process_file().
This commit is contained in:
parent
f597d25811
commit
45c1ba5dc8
2
reader.c
2
reader.c
|
@ -234,7 +234,7 @@ int process_file(const char *filename, int show)
|
||||||
if (!path)
|
if (!path)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
in = fopen(filename, "r");
|
in = fopen(path, "r");
|
||||||
free(path);
|
free(path);
|
||||||
if (!in) {
|
if (!in) {
|
||||||
printc_err("read: can't open %s: %s\n",
|
printc_err("read: can't open %s: %s\n",
|
||||||
|
|
Loading…
Reference in New Issue