public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: gratz@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [csih] branch master, updated. v0_9_9-1-g128ed70
Date: Fri, 11 Mar 2016 21:52:00 -0000	[thread overview]
Message-ID: <20160311215238.13039.qmail@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-csih.git;h=128ed704ed13cda2f3b2e336dba4aeb27a70bdd6

commit 128ed704ed13cda2f3b2e336dba4aeb27a70bdd6
Author: Achim Gratz <Stromeko@Stromeko.DE>
Date:   Fri Mar 11 20:43:33 2016 +0100

    Fix creation of privileged user in /etc/passwd
    
    * cygwin-service-installation-helper.sh (csih_create_privileged_user):
      The user name for the priviledged user is in
      ${csih_PRIVILEGED_USERNAME} in this function, so use this variable
      instead of ${username}.
    
    Reported and fix suggested by Nick Battle in
    https://cygwin.com/ml/cygwin/2016-03/msg00154.html


Diff:
---
 cygwin-service-installation-helper.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cygwin-service-installation-helper.sh b/cygwin-service-installation-helper.sh
index 10ab4fb..60d4bec 100755
--- a/cygwin-service-installation-helper.sh
+++ b/cygwin-service-installation-helper.sh
@@ -3066,7 +3066,7 @@ csih_create_privileged_user()
       # If we use /etc account DB only, write new account to /etc/passwd
       if csih_use_file_etc passwd
       then
-	/usr/bin/mkpasswd -l -u "${username}" >> "${SYSCONFDIR}/passwd"
+	/usr/bin/mkpasswd -l -u "${csih_PRIVILEGED_USERNAME}" >> "${SYSCONFDIR}/passwd"
       fi
 
       return "${ret}"


                 reply	other threads:[~2016-03-11 21:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160311215238.13039.qmail@sourceware.org \
    --to=gratz@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).