git: 943af0501107 - stable/13 - login_cap.h: Remove LOGIN_DEFUMASK
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Feb 2024 21:26:16 UTC
The branch stable/13 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=943af0501107f88312a98b217b6956f3d0f2fa76 commit 943af0501107f88312a98b217b6956f3d0f2fa76 Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2024-01-25 22:10:40 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2024-02-01 21:24:22 +0000 login_cap.h: Remove LOGIN_DEFUMASK This public constant has not been used in-tree since 1997 (this was noticed while working on previous commit "setusercontext(): umask: Set it only once (in the common case)"). Since it was an implementation detail and GitHub's code search and Google show no use of this symbol today, simply remove it. PR: 276570 (exp-run) Reviewed by: emaste, kib (earlier version, then part of D40344) Approved by: emaste (mentor) MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43608 (cherry picked from commit e3a396eb2a029e5dc9161469735aa3f7f16845d1) Approved by: markj (mentor) --- lib/libutil/login_cap.h | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libutil/login_cap.h b/lib/libutil/login_cap.h index 0037b41d9055..a48246804a47 100644 --- a/lib/libutil/login_cap.h +++ b/lib/libutil/login_cap.h @@ -32,7 +32,6 @@ #define LOGIN_MECLASS "me" #define LOGIN_DEFSTYLE "passwd" #define LOGIN_DEFSERVICE "login" -#define LOGIN_DEFUMASK 022 #define LOGIN_DEFPRI 0 #define _PATH_LOGIN_CONF "/etc/login.conf" #define _FILE_LOGIN_CONF ".login_conf"