version 1.9, 2002/11/29 00:27:03 |
version 1.10, 2002/12/15 13:30:17 |
|
|
|
|
if ((fd = open(inname, O_RDONLY)) < 0) { |
if ((fd = open(inname, O_RDONLY)) < 0) { |
/* We can't open it, but we were able to stat it. */ |
/* We can't open it, but we were able to stat it. */ |
if (sb.st_mode & 0002) ckfputs("writeable, ", stdout); |
if (sb.st_mode & 0002) ckfputs("writable, ", stdout); |
if (sb.st_mode & 0111) ckfputs("executable, ", stdout); |
if (sb.st_mode & 0111) ckfputs("executable, ", stdout); |
ckfprintf(stdout, "can't read `%s' (%s).\n", |
ckfprintf(stdout, "can't read `%s' (%s).\n", |
inname, strerror(errno)); |
inname, strerror(errno)); |