version 1.28, 2019/05/07 14:26:38 |
version 1.29, 2019/06/28 13:35:01 |
|
|
*/ |
*/ |
qpathname = shell_unquote(pathname); |
qpathname = shell_unquote(pathname); |
f = open(qpathname, O_RDONLY); |
f = open(qpathname, O_RDONLY); |
if (f < 0) { |
if (f == -1) { |
free(pathname); |
free(pathname); |
pathname = NULL; |
pathname = NULL; |
} else { |
} else { |
|
|
struct stat statbuf; |
struct stat statbuf; |
|
|
r = stat(filename, &statbuf); |
r = stat(filename, &statbuf); |
if (r < 0) { |
if (r == -1) { |
m = errno_message(filename); |
m = errno_message(filename); |
} else if (force_open) { |
} else if (force_open) { |
m = NULL; |
m = NULL; |