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:
rwatson 2008-07-15 16:07:34 +00:00
parent f3345a46c6
commit 17097e8c0f

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) {