misc/125680: atacontrol depends on executable in /usr

David Schultz das at FreeBSD.ORG
Wed Jul 16 21:30:08 UTC 2008


The following reply was made to PR bin/125680; it has been noted by GNATS.

From: David Schultz <das at FreeBSD.ORG>
To: Kris Kennaway <kris at FreeBSD.ORG>
Cc: bug-followup at FreeBSD.ORG
Subject: Re: misc/125680: atacontrol depends on executable in /usr
Date: Wed, 16 Jul 2008 17:28:31 -0400

 On Wed, Jul 16, 2008, Kris Kennaway wrote:
 >  Better fix: use /bin/csh and the built-in nice.
 
 Better yet, given that it's a C program that invokes
        /usr/bin/nice -n 20 /bin/dd if=/dev/ar%d of=/dev/null bs=1m &
 via system(3), would be to use nice(3). Actually, the whole thing
 is sort of dubious: What if my libraries are corrupted and I'm trying
 to use /rescue/atacontrol to fix things, but it gives an error because
 it's hardwired to use /bin/dd instead of /rescue/dd? A simple
 while (!eof) read(); loop should suffice.


More information about the freebsd-bugs mailing list