Fix a regression introduced with previous changeset: if output is stdout,
do not check for symbolic link.
This commit is contained in:
parent
a6d11f7139
commit
5106ce89d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222287
@ -1782,7 +1782,8 @@ handle_pathname(char *path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
retry:
|
retry:
|
||||||
if (stat(path, &sb) != 0 || (fflag == 0 && lstat(path, &sb) != 0)) {
|
if (stat(path, &sb) != 0 || (fflag == 0 && cflag == 0 &&
|
||||||
|
lstat(path, &sb) != 0)) {
|
||||||
/* lets try <path>.gz if we're decompressing */
|
/* lets try <path>.gz if we're decompressing */
|
||||||
if (dflag && s == NULL && errno == ENOENT) {
|
if (dflag && s == NULL && errno == ENOENT) {
|
||||||
len = strlen(path);
|
len = strlen(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user