Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/lib/libutil Pull up 1.25: fix possible format string vu...
details: https://anonhg.NetBSD.org/src/rev/6f7e3cd46d3b
branches: netbsd-1-5
changeset: 489658:6f7e3cd46d3b
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Tue Oct 03 20:11:00 2000 +0000
description:
Pull up 1.25: fix possible format string vulnerability.
approved by thorpej
diffstat:
lib/libutil/passwd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0dab0ae00549 -r 6f7e3cd46d3b lib/libutil/passwd.c
--- a/lib/libutil/passwd.c Tue Oct 03 15:21:43 2000 +0000
+++ b/lib/libutil/passwd.c Tue Oct 03 20:11:00 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: passwd.c,v 1.19 1999/12/03 16:23:58 mjl Exp $ */
+/* $NetBSD: passwd.c,v 1.19.4.1 2000/10/03 20:11:00 sommerfeld Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: passwd.c,v 1.19 1999/12/03 16:23:58 mjl Exp $");
+__RCSID("$NetBSD: passwd.c,v 1.19.4.1 2000/10/03 20:11:00 sommerfeld Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -329,7 +329,7 @@
{
if (err)
- warn(name);
+ warn("%s", name);
warnx("%s: unchanged", _PATH_MASTERPASSWD);
pw_abort();
Home |
Main Index |
Thread Index |
Old Index