Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/user Set default homeperm values before writing use...
details: https://anonhg.NetBSD.org/src/rev/50e61042e6e8
branches: trunk
changeset: 319767:50e61042e6e8
user: zafer <zafer%NetBSD.org@localhost>
date: Sun Jun 10 07:52:05 2018 +0000
description:
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 cab31adec4ec -r 50e61042e6e8 usr.sbin/user/user.c
--- a/usr.sbin/user/user.c Sat Jun 09 23:45:56 2018 +0000
+++ b/usr.sbin/user/user.c Sun Jun 10 07:52:05 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.132 2018/06/10 07:52:05 zafer 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.132 2018/06/10 07:52:05 zafer 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