From: sos AT buggy DOT prospect DOT com DOT ru (Sergey Okhapkin) Subject: RE: Tar bug 22 Feb 1998 11:13:41 -0800 Message-ID: <01BD3FDE.93A02EC0.cygnus.cygwin32.developers@sos> To: "'cygwin32-developers AT cygnus DOT com'" Sergey Okhapkin wrote: > > "tar cf - filelist" doesn't writes tar archive to stdout. This happens when stdout is not a regular file. f:\cygnus\user-tools\tar\src>diff -up buffer.c.orig buffer.c --- buffer.c.orig Fri Feb 13 23:11:43 1998 +++ buffer.c Sun Feb 22 22:02:50 1998 @@ -804,11 +804,15 @@ open_archive (enum access_mode access) /* Detect if outputting to "/dev/null". */ { +#ifndef __CYGWIN32__ struct stat dev_null_stat; stat ("/dev/null", &dev_null_stat); dev_null_output = (S_ISCHR (archive_stat.st_mode) && archive_stat.st_rdev == dev_null_stat.st_rdev); +#else + dev_null_output = 0; +#endif } if (!_isrmt (archive) && S_ISREG (archive_stat.st_mode)) -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia Looking for a job