Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/usr.sbin/user Pull up following revision(s) (requested by...
details: https://anonhg.NetBSD.org/src/rev/192ce8270ecd
branches: netbsd-8
changeset: 851796:192ce8270ecd
user: martin <martin%NetBSD.org@localhost>
date: Thu Jun 14 19:54:40 2018 +0000
description:
Pull up following revision(s) (requested by zafer in ticket #877):
usr.sbin/user/user.c: revision 1.132
Set default homeperm values before writing usermgmt.conf file and
honor values in it instead of ignoring it.
Fixes PR bin/40324 by Guy Yur
diffstat:
usr.sbin/user/user.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (34 lines):
diff -r dc9bf015ce2c -r 192ce8270ecd usr.sbin/user/user.c
--- a/usr.sbin/user/user.c Tue Jun 12 16:36:26 2018 +0000
+++ b/usr.sbin/user/user.c Thu Jun 14 19:54:40 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: user.c,v 1.131 2012/11/28 11:31:27 blymn Exp $ */
+/* $NetBSD: user.c,v 1.131.22.1 2018/06/14 19:54:40 martin Exp $ */
/*
* Copyright (c) 1999 Alistair G. Crooks. All rights reserved.
@@ -33,7 +33,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1999\
The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: user.c,v 1.131 2012/11/28 11:31:27 blymn Exp $");
+__RCSID("$NetBSD: user.c,v 1.131.22.1 2018/06/14 19:54:40 martin Exp $");
#endif
#include <sys/types.h>
@@ -819,6 +819,7 @@
NEWARRAY(range_t, up->u_rv, up->u_rsize, exit(1));
up->u_inactive = DEF_INACTIVE;
up->u_expire = DEF_EXPIRE;
+ up->u_homeperm = DEF_HOMEPERM;
gp->g_rsize = 16;
gp->g_defrc = 0;
NEWARRAY(range_t, gp->g_rv, gp->g_rsize, exit(1));
@@ -903,7 +904,6 @@
up->u_rc += 1;
}
up->u_defrc = up->u_rc;
- up->u_homeperm = DEF_HOMEPERM;
}
/* return the next valid unused uid */
Home |
Main Index |
Thread Index |
Old Index