Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Nov 2009 09:10:06 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Alexander Best <alexbestms@math.uni-muenster.de>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: [patch] burncd: honour for envar SPEED
Message-ID:  <873a4o2my9.fsf@kobe.laptop>
In-Reply-To: <permail-2009110900474080e26a0b00002e97-a_best01@message-id.uni-muenster.de> (Alexander Best's message of "Mon, 09 Nov 2009 01:47:40 %2B0100 (CET)")
References:  <permail-2009110900474080e26a0b00002e97-a_best01@message-id.uni-muenster.de>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi Alexander,

The idea seems very good, but since the value of SPEED is user supplied
data, I would rather see a bit of validation code after getenv().  With
this version of the patch, burncd would happily accept and try to use
values that are quite absurd, i.e.:

    env SPEED=12234567890 burncd ...

It may also be sensible to do the translation from "human readable"
speed values and the multiplication with 177 _after_ the value has been
parsed from getenv(), so that e.g. one can write:

    env SPEED=4 burncd

and get behavior similar to the current default.


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkr3wE4ACgkQ1g+UGjGGA7YjFgCfXgfRdV1pVOnfH/AMcQy3HmLw
Bx8An2bcrDqoGuT+yA6SFkYkDr9qxrSJ
=sORN
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?873a4o2my9.fsf>