Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146299969
D40690.1779801067.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
615 B
Referenced Files
None
Subscribers
None
D40690.1779801067.diff
View Options
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 (login_getcapenum(lc, "priority", inherit_enum) == 0)
+ /* Found "inherit". */
+ return;
+
+ p = login_getcapnum(lc, "priority", def_val, err_val);
+
if (p == err_val) {
/* Invariant: 'lc' != NULL. */
syslog(LOG_WARNING,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 26, 1:11 PM (11 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28778227
Default Alt Text
D40690.1779801067.diff (615 B)
Attached To
Mode
D40690: setclasspriority(): New value 'inherit'
Attached
Detach File
Event Timeline
Log In to Comment