Invoke err() with a format string rather than directly with a passed

command line argument.

Submitted by:	Alfredo Ortega <alfredo at coresecurity dot com>
Thanks to:	Core Security Technologies
MFC after:	3 days
This commit is contained in:
Robert Watson 2008-07-15 16:07:34 +00:00
parent 43cc0bc1df
commit b689e6a8a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180537

View File

@ -172,7 +172,7 @@ main(int argc, char *argv[])
error = extattr_string_to_namespace(argv[0], &attrnamespace);
if (error)
err(-1, argv[0]);
err(-1, "%s", argv[0]);
argc--; argv++;
if (what != EALS) {