diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-07-15 16:07:34 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-07-15 16:07:34 +0000 |
commit | 7cf9955507e487543c1e66a8b23912017ef31a49 (patch) | |
tree | d55bc6bdbf8533e5241d19ab73b613813295d457 /usr.sbin/extattr | |
parent | 6d9661b22428319f8d87375a3d6f69afda13469a (diff) | |
download | FreeBSD-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/extattr')
-rw-r--r-- | usr.sbin/extattr/rmextattr.c | 2 |
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) { |