do not use stat.st_mtime of a non-regular file
authorJim Meyering <meyering@redhat.com>
Fri, 19 Mar 2010 17:09:20 +0000 (18:09 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 20 Mar 2010 11:44:42 +0000 (12:44 +0100)
commitcad194d49efdb478ae0acf9355ab2ffe4d650739
tree5b1d362b569c549edf90860e0da6d1bd4b379804
parente1221d23193d233e7a2b518846458adecc5272df
do not use stat.st_mtime of a non-regular file

* gzip.c: Include "timespec.h".
(treat_stdin): Use st_mtime only from a regular file.
This matters at least on Cygwin 1.7.1-1, for which a stdin-pipe has
the mtime of /dev/null, rather than the gzip-documented-for-pipes
"current time".  Reported by Denis Excoffier.
THANKS
gzip.c