https://qa.mandrakesoft.com/show_bug.cgi?id=771
Product: setup
Component: setup
Summary: Setup: /etc/bashrc doesn't quote user and group names
Version: 2.2.0-33mdk
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: major
Priority: P2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
This bug was posted on cooker, escalated to a bug since it should be fixed for
9.1 and no progress has been made. I was reminded since I had to help yet
another person with this ...
Typical error occurs in any new shell (VT, terminal emulater, remote shell via
ssh such as cvs over ssh):
bash: [: too many arguments
Original cooker post:
This is a problem when group names have a space, typical when Mandrake
is configured for winbind, returning windows group names like "Domain
Users", breaking this script, which things like wincvs don't like for
some reason.
Please don't assume that usernames and groupnames will not have spaces
in them.
Please apply this patch:
--- bashrc.orig 2002-11-15 13:23:37.000000000 +0200
+++ bashrc 2002-11-15 13:19:43.000000000 +0200
@@ -5,7 +5,7 @@
# by default, we want this to get set.
# Even for non-interactive, non-login shells.
-if [ `id -gn` = `id -un` -a `id -u` -gt 99 ]; then
+if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.