Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/user Pull up revision 1.37 (requested by lukem):
details: https://anonhg.NetBSD.org/src/rev/d24574a2ced9
branches: netbsd-1-5
changeset: 490692:d24574a2ced9
user: he <he%NetBSD.org@localhost>
date: Mon Feb 26 18:01:17 2001 +0000
description:
Pull up revision 1.37 (requested by lukem):
Make sure that a modified group has a trailing newline.
diffstat:
usr.sbin/user/user.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r ee21ba9f26c8 -r d24574a2ced9 usr.sbin/user/user.c
--- a/usr.sbin/user/user.c Mon Feb 26 17:53:08 2001 +0000
+++ b/usr.sbin/user/user.c Mon Feb 26 18:01:17 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: user.c,v 1.20.4.7 2001/02/26 15:15:51 he Exp $ */
+/* $NetBSD: user.c,v 1.20.4.8 2001/02/26 18:01:17 he Exp $ */
/*
* Copyright (c) 1999 Alistair G. Crooks. All rights reserved.
@@ -35,7 +35,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1999 \
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: user.c,v 1.20.4.7 2001/02/26 15:15:51 he Exp $");
+__RCSID("$NetBSD: user.c,v 1.20.4.8 2001/02/26 18:01:17 he Exp $");
#endif
#include <sys/types.h>
@@ -1692,6 +1692,7 @@
cc += snprintf(&buf[cc], sizeof(buf) - cc, "%s%s", *cpp,
(cpp[1] == NULL) ? "" : ",");
}
+ cc += snprintf(&buf[cc], sizeof(buf) - cc, "\n");
if (!modify_gid(argv[optind], buf)) {
err(EXIT_FAILURE, "can't change %s file", _PATH_GROUP);
}
Home |
Main Index |
Thread Index |
Old Index