summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-06-15 21:51:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-06-15 21:51:44 +0000
commit6eae274a351ce903c69977c5c4d55cc45ff6de02 (patch)
tree2aeb10dab3484685a298ff51d6aa95272c8acc0d
parent2e793d057499345ecd86b2b88dee479419100ff2 (diff)
downloadutmps-6eae274a351ce903c69977c5c4d55cc45ff6de02.tar.xz
Small bugfixes, prepare for 0.0.1.1
-rw-r--r--NEWS6
-rw-r--r--doc/index.html2
-rw-r--r--doc/upgrade.html6
-rw-r--r--package/info2
-rw-r--r--src/utmps/utmps-utmpd.c8
5 files changed, 20 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 5bb2cac..e7f79c6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,11 @@
Changelog for utmps.
+In 0.0.1.1
+----------
+
+ - Bugfixes.
+
+
In 0.0.1.0
----------
diff --git a/doc/index.html b/doc/index.html
index 2db9eba..714f184 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -71,7 +71,7 @@ library. </li>
<h3> Download </h3>
<ul>
- <li> The current released version of utmps is <a href="utmps-0.0.1.0.tar.gz">0.0.1.0</a>. </li>
+ <li> The current released version of utmps is <a href="utmps-0.0.1.1.tar.gz">0.0.1.1</a>. </li>
<li> Alternatively, you can checkout a copy of the
<a href="//git.skarnet.org/cgi-bin/cgit.cgi/utmps/">utmps
git repository</a>:
diff --git a/doc/upgrade.html b/doc/upgrade.html
index b5c9db9..c2ec85b 100644
--- a/doc/upgrade.html
+++ b/doc/upgrade.html
@@ -18,6 +18,12 @@
<h1> What has changed in utmps </h1>
+<h2> in 0.0.1.1 </h2>
+
+<ul>
+ <li> No functional changes. </li>
+</ul>
+
<h2> in 0.0.1.0 </h2>
<p>
diff --git a/package/info b/package/info
index ef6ce64..1a4d2c8 100644
--- a/package/info
+++ b/package/info
@@ -1,4 +1,4 @@
package=utmps
-version=0.0.1.0
+version=0.0.1.1
category=admin
package_macro_name=UTMPS
diff --git a/src/utmps/utmps-utmpd.c b/src/utmps/utmps-utmpd.c
index e460368..ecf8215 100644
--- a/src/utmps/utmps-utmpd.c
+++ b/src/utmps/utmps-utmpd.c
@@ -48,7 +48,9 @@ static void maybe_open (void)
{
if (fd < 0)
{
- fd = open("utmp", O_RDWR | O_CREAT) ;
+ mode_t m = umask(0) ;
+ fd = open("utmp", O_RDWR | O_CREAT, 0644) ;
+ umask(m) ;
if (fd < 0)
{
int e = errno ;
@@ -188,7 +190,9 @@ static void do_rewind (void)
int main (void)
{
uid_t uid ;
- char const *x = ucspi_get("REMOTEEUID") ;
+ char const *x ;
+ PROG = "utmps-utmpd" ;
+ x = ucspi_get("REMOTEEUID") ;
if (!x) strerr_diefu1x(100, "get $IPCREMOTEEUID from environment") ;
if (!uid0_scan(x, &uid)) strerr_dieinvalid(100, "IPCREMOTEEUID") ;
if (ndelay_on(0) < 0) strerr_diefu1sys(111, "set stdin non-blocking") ;