linux-mips
[Top] [All Lists]

Re: deleted /dev/zero

To: ldavies@agile.tv
Subject: Re: deleted /dev/zero
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Tue, 14 May 2002 15:02:38 +0200 (MET DST)
Cc: Jun Sun <jsun@mvista.com>, linux-mips@oss.sgi.com
In-reply-to: <3CE06604.2050800@agile.tv>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Tue, 14 May 2002, Liam Davies wrote:

> The ltp mtest05 test had a bug in which it would remove /dev/zero when
> it cleaned up. Have you got an updated ltp suite?
> 
> This is the fix that they did in late March to the mtest05 test.
> 
> /ltp/ltp/testcases/kernel/mem/mtest05/mmstress.c:246
> -    if (strcmp(filename, "NULL") || strcmp(filename, "/dev/zero"))
> +    if (strcmp(filename, "NULL") && strcmp(filename, "/dev/zero"))
> 
> I suppose that there may be other LTP tests that could have similar
> bugs...

 Which only proves again one shouldn't run software as root unless
absolutely needed... 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


<Prev in Thread] Current Thread [Next in Thread>