Projects
Mega:23.03
util-linux
_service:tar_scm:2.36-login-lastlog-create.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:2.36-login-lastlog-create.patch of Package util-linux
diff -up util-linux-2.36/login-utils/login.c.kzak util-linux-2.36/login-utils/login.c --- util-linux-2.36/login-utils/login.c.kzak 2020-07-23 14:13:26.777030764 +0200 +++ util-linux-2.36/login-utils/login.c 2020-07-23 14:11:22.793686983 +0200 @@ -585,7 +585,7 @@ static void log_lastlog(struct login_con sa.sa_handler = SIG_IGN; sigaction(SIGXFSZ, &sa, &oldsa_xfsz); - fd = open(_PATH_LASTLOG, O_RDWR, 0); + fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0); if (fd < 0) goto done; offset = cxt->pwd->pw_uid * sizeof(ll);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2