aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/extattr
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2008-07-15 16:07:34 +0000
committerRobert Watson <rwatson@FreeBSD.org>2008-07-15 16:07:34 +0000
commitb689e6a8a372a724753b6f0c615ab40597a5fdc0 (patch)
treed55bc6bdbf8533e5241d19ab73b613813295d457 /usr.sbin/extattr
parent43cc0bc1dfe506022656c2a8c774a189b576b5d3 (diff)
downloadsrc-b689e6a8a372a724753b6f0c615ab40597a5fdc0.tar.gz
src-b689e6a8a372a724753b6f0c615ab40597a5fdc0.zip
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
Notes
Notes: svn path=/head/; revision=180537
Diffstat (limited to 'usr.sbin/extattr')
-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 0c65d7b29bce..2b2689b0d1f4 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) {