svn commit: r202662 - stable/8/usr.sbin/burncd
Alexey Dokuchaev
danfe at FreeBSD.org
Wed Jan 20 05:27:42 UTC 2010
On Wed, Jan 20, 2010 at 12:43:15AM +0000, Xin LI wrote:
> @@ -147,6 +144,15 @@ main(int argc, char **argv)
> argc -= optind;
> argv += optind;
>
> + if (env_speed == NULL)
> + ;
> + else if (strcasecmp("max", env_speed) == 0)
> + speed = CDR_MAX_SPEED;
> + else
> + speed = atoi(env_speed) * 177;
> + if (speed <= 0)
> + errx(EX_USAGE, "Invalid speed: %s", optarg);
^^^^^^
This does not seem correct: ------------------------''''''
$ burncd -s foo -f bar
burncd: Invalid speed: bar
./danfe
More information about the svn-src-stable
mailing list