Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143956691
D40687.id133543.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
750 B
Referenced Files
None
Subscribers
None
D40687.id133543.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
@@ -380,6 +380,11 @@
}
+static const char * const inherit_enum[] = {
+ "inherit",
+ NULL
+};
+
/*
* Private function setting umask from the login class.
*/
@@ -391,7 +396,13 @@
* indicating no specification.
*/
const rlim_t def_val = INT64_MIN + 1, err_val = INT64_MIN;
- const rlim_t val = login_getcapnum(lc, "umask", def_val, err_val);
+ rlim_t val;
+
+ /* If value is "inherit", nothing to change. */
+ if (login_getcapenum(lc, "umask", inherit_enum) == 0)
+ return;
+
+ val = login_getcapnum(lc, "umask", def_val, err_val);
if (val != def_val) {
if (val < 0 || val > UINT16_MAX) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 3, 1:26 PM (14 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28424353
Default Alt Text
D40687.id133543.diff (750 B)
Attached To
Mode
D40687: setclassumask(): Accept 'inherit' as a value
Attached
Detach File
Event Timeline
Log In to Comment