Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152657852
D40690.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
639 B
Referenced Files
None
Subscribers
None
D40690.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 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
Details
Attached
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)
Attached To
Mode
D40690: setclasspriority(): New value 'inherit'
Attached
Detach File
Event Timeline
Log In to Comment