runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 6338802596d6ca4fceff380bd56bb0f41432bdc9
parent 08ff23c1bc0d12880daf85f584629bce3962a4d2
Author: Gerrit Pape <pape@smarden.org>
Date:   Tue, 20 Jun 2006 18:58:53 +0000

  * uidgid.c: properly fixup user/group argument on getpwnam() error.

Diffstat:
Mpackage/CHANGES | 7++++---
Msrc/uidgid.c | 2+-
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/package/CHANGES b/package/CHANGES @@ -1,11 +1,12 @@ 1.6.0 * src/svlogd.c: cleanup *.t files possibly leftover by processor when - interrupted by signal, also on startup (thx Andras Korn); 1st rename - .t to .s, then remove .u. + interrupted by signal, also on startup (thx Andras Korn, + http://bugs.debian.org/369840); 1st rename .t to .s, then remove .u. * man/svlogd.8: adapt. * svlogd.c: prepend optional timestamp to log messages sent through UDP, as done for messages written to dir and to stderr. + * uidgid.c: properly fixup user/group argument on getpwnam() error. 1.5.1 Wed, 10 May 2006 20:55:35 +0000 @@ -32,7 +33,7 @@ Sun, 16 Apr 2006 12:26:50 +0000 Mon, 20 Mar 2006 18:54:41 +0000 * doc/faq.html: typos; add usercontrol, userservices; minor. * src/uidgid.h: use uid_t, git_t (fix setting of multiple groups with - dietlibc, thx Tino Keitel) + dietlibc, thx Tino Keitel, http://bugs.debian.org/356016) runit 1.4.0 Mon, 06 Mar 2006 12:45:08 +0000 diff --git a/src/uidgid.c b/src/uidgid.c @@ -15,7 +15,7 @@ unsigned int uidgid_get(struct uidgid *u, char *ug, unsigned int dogrp) { ug[d] =0; g =ug +d +1; } - if (! (pwd =getpwnam(ug))) { ug[d] =':'; return(0); } + if (! (pwd =getpwnam(ug))) { if (g) ug[d] =':'; return(0); } if (g) { ug[d] =':'; for (i =0; i < 60; ++i) {