This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

BUG: base-files-2.0.2 quoting bug and path helpers


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]