From: Jim Meyering Date: Tue, 8 Jun 2004 06:47:43 +0000 (+0000) Subject: (direct_mode): Turn it on/off with directio, too. X-Git-Tag: v5.3.0~1387 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62d6b980b27e15d7013aa24a0a1b89039ba2fe8e;p=thirdparty%2Fcoreutils.git (direct_mode): Turn it on/off with directio, too. --- diff --git a/src/shred.c b/src/shred.c index 44be403f59..92962b9ed3 100644 --- a/src/shred.c +++ b/src/shred.c @@ -828,10 +828,10 @@ direct_mode (int fd, bool enable) } } -#if HAVE_DIRECTIO && defined DIRECTIO_ON +#if HAVE_DIRECTIO && defined DIRECTIO_ON && defined DIRECTIO_OFF /* This is Solaris-specific. See the following for details: http://docs.sun.com/db/doc/816-0213/6m6ne37so?q=directio&a=view */ - directio (fd, DIRECTIO_ON); + directio (fd, enable ? DIRECTIO_ON : DIRECTIO_OFF); #endif }