summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-07-15 16:07:34 +0000
committerrwatson <rwatson@FreeBSD.org>2008-07-15 16:07:34 +0000
commit7cf9955507e487543c1e66a8b23912017ef31a49 (patch)
treed55bc6bdbf8533e5241d19ab73b613813295d457 /usr.sbin
parent6d9661b22428319f8d87375a3d6f69afda13469a (diff)
downloadFreeBSD-src-7cf9955507e487543c1e66a8b23912017ef31a49.zip
FreeBSD-src-7cf9955507e487543c1e66a8b23912017ef31a49.tar.gz
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/extattr/rmextattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/extattr/rmextattr.c b/usr.sbin/extattr/rmextattr.c
index 0c65d7b..2b2689b 100644
--- a/usr.sbin/extattr/rmextattr.c
+++ b/usr.sbin/extattr/rmextattr.c
@@ -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) {
OpenPOWER on IntegriCloud