Page MenuHomeFreeBSD

D40690.diff
No OneTemporary

D40690.diff

diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c
--- a/lib/libutil/login_class.c
+++ b/lib/libutil/login_class.c
@@ -462,9 +462,15 @@
setclasspriority(login_cap_t * const lc, struct passwd const * const pwd)
{
const rlim_t def_val = LOGIN_DEFPRI, err_val = INT64_MIN;
- rlim_t p = login_getcapnum(lc, "priority", def_val, err_val);
+ rlim_t p;
int rc;
+ /* If value is "inherit", nothing to change. */
+ if (login_getcapenum(lc, "priority", inherit_enum) == 0)
+ return;
+
+ p = login_getcapnum(lc, "priority", def_val, err_val);
+
if (p == err_val) {
/* Invariant: 'lc' != NULL. */
syslog(LOG_WARNING,

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 17, 8:11 AM (2 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31640560
Default Alt Text
D40690.diff (639 B)

Event Timeline