Module Name:    src
Committed By:   joerg
Date:           Tue May 24 12:25:05 UTC 2011

Modified Files:
        src/usr.bin/extattr: getextattr.c

Log Message:
Don't use user input as format string


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/extattr/getextattr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/extattr/getextattr.c
diff -u src/usr.bin/extattr/getextattr.c:1.3 src/usr.bin/extattr/getextattr.c:1.4
--- src/usr.bin/extattr/getextattr.c:1.3	Sat Jun 17 08:32:42 2006
+++ src/usr.bin/extattr/getextattr.c	Tue May 24 12:25:05 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: getextattr.c,v 1.3 2006/06/17 08:32:42 elad Exp $	*/
+/*	$NetBSD: getextattr.c,v 1.4 2011/05/24 12:25:05 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2003 Networks Associates Technology, Inc.
@@ -178,7 +178,7 @@
 
 	error = extattr_string_to_namespace(argv[0], &attrnamespace);
 	if (error)
-		err(1, argv[0]);
+		err(1, "%s", argv[0]);
 	argc--; argv++;
 
 	if (what != EALS) {

Reply via email to