delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/15/17:54:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <41504.12.22.157.254.1060991894.squirrel@mail3411.b0.com>
Date: Fri, 15 Aug 2003 18:58:14 -0500 (CDT)
Subject: BUG: base-files-2.0.2 quoting bug and path helpers
From: "mike808" <mike808 AT users DOT sourceforge DOT net>
To: <john DOT r DOT morrison AT ntlworld DOT com>, <cygwin AT cygwin DOT com>,
<cygwin-apps AT cygwin DOT com>
X-Priority: 3
Importance: Normal
X-MSMail-Priority: Normal
Cc: <mike808 AT users DOT sourceforge DOT net>
Reply-To: mike808 AT users DOT sourceforge DOT net
MIME-Version: 1.0

Pkg: base-files-2.0.2

I see on cygwin-app list John has caught the bug with not quoting
${groupID}. 2.0.3 should be making its way to a mirror soon.

In the /etc/profile replacement, we find:

> if [ "mkpasswd" == "${groupID}" -o "mkgroup" == "${groupID}"
> -o "mkgroup_l_d" == "${groupID}" ]; then

On my Win2K system my cygwin user's group happens to be "Domain Users",
which has an embedded space in it, causing the non-quoted version to
barf on the syntax.

There's also a related bug, further up where you run the /etc/profile.d
scripts.

> # Run all of the profile.d scripts
> # Note that these are supplied by separate packages
> for i in /etc/profile.d/*.sh ; do
>   if [ -f "$i" ]; then
>     . "$i"
>   fi
> done

Note the quotes around the "$i". If a file were named "run me.sh",
this block would also barf for the same reasons.

*****
NOTE: This bug has NOT been corrected in the base-files-2.0.3 release.
*****

Enjoy.

Regards,
Michael King/





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019