diff options
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | doc/index.html | 2 | ||||
-rw-r--r-- | doc/upgrade.html | 6 | ||||
-rw-r--r-- | package/info | 2 | ||||
-rw-r--r-- | src/utmps/utmps-utmpd.c | 8 |
5 files changed, 20 insertions, 4 deletions
@@ -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") ; |