[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <f8q6is$tg3$1@sea.gmane.org>
Date: Wed, 01 Aug 2007 16:50:04 +0200
From: Bernd Schubert <bschubert@...eap.de>
To: linux-ext4@...r.kernel.org
Subject: [PATCH] e2fsck/e2fsprogs: use sscanf() instead of atoi() in the option parser
[resent since the first mail doesn't seem to make it to this list]
Hi,
using atoi() should be avoided in the option parser since it doesn't check
for errors. I almost destroyed an important filesystem since I
specified "e2fsck -C -n" and -n was parsed as option to -C
Cheers,
Bernd
View attachment "sscanf_instead_of_atoi.patch" of type "text/x-diff" (2248 bytes)
Powered by blists - more mailing lists