Re: base-files-4.2-3 : attention maintainer

2015-09-26 Thread Andrey Repin
Greetings, Ken Brown!

> As long as you're updating base-files anyway, maybe you could implement
> one of the previously-discussed proposals for showing a prompt of "#" 
> instead of "$" in shells with sufficient privileges.  Unfortunately, I 
> don't remember if there was ever a consensus reached on exactly how that 
> should be done.

Something to this extent?

PS1_TAIL="$(
  x="$"
  for group in $(id -G); do 
  {
test $group -eq 114 && { x="#"; break; }
test $group -eq 544 && { x="#"; break; }
test $group -eq 0 && { x="Please remove well-known SID overrides from your 
/etc/group file#"; break; }
  }
  done
  echo $x
  )"
if [ "$color_prompt" = yes ]; then

PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\007\]\n$PS1_TAIL
 '
else
PS1='\u@\h:\w\007\n$PS1_TAIL '
fi
unset color_prompt force_color_prompt


-- 
With best regards,
Andrey Repin
Saturday, September 26, 2015 12:07:50

Sorry for my terrible english...


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



Re: base-files-4.2-3 : attention maintainer

2015-09-26 Thread Achim Gratz
Ken Brown writes:
> As long as you're updating base-files anyway, maybe you could
> implement one of the previously-discussed proposals for showing a
> prompt of "#" instead of "$" in shells with sufficient privileges.
> Unfortunately, I don't remember if there was ever a consensus reached
> on exactly how that should be done.

You'd need to check that group 544 is in your user token.  Some folks
say 114 too, but if you use cygdrop -l, this group will stay in your
token, while you are _not_ having local admin rights anymore.

But calling id on a domain member machine can, under unfavorable
circumstances, take more than a minute to complete.  The AD integration
for Cygwin has developed further since I last saw this problem so it's
possible it's been solved along with some other things.  However since
I've not had the time yet to try and re-create the setup that most
consistently showed the problem I don't want to put it into any standard
startup files.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra

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



Re: base-files-4.2-3 : attention maintainer

2015-09-25 Thread Ken Brown

On 9/24/2015 1:29 PM, Achim Gratz wrote:

Marco Atzeri writes:

the bug is in the
   /etc/postinstall/base-files-mketc.sh
of base-files-4.2-3


FILES="hosts protocols services networks"
OSNAME="$(/usr/bin/uname -s)"
WINETC="$(/usr/bin/cygpath -S -u)/drivers/etc"

[cut]

for mketc in ${FILES}
do
   if [ ! -e "/etc/${mketc}" -a ! -L "/etc/${mketc}" ]
   then
 /usr/bin/ln -s -v "${WINETC}/${mketc}" "/etc/${mketc}"
   fi
done


As on my systems the bug is not present,
it can be a relative recent introduction.


I've introduced this bug inadvertently when releasing base-files-4.1.
I'll fix it towards the weekend.


As long as you're updating base-files anyway, maybe you could implement 
one of the previously-discussed proposals for showing a prompt of "#" 
instead of "$" in shells with sufficient privileges.  Unfortunately, I 
don't remember if there was ever a consensus reached on exactly how that 
should be done.


Ken


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



base-files-4.2-3 : attention maintainer

2015-09-24 Thread Marco Atzeri

On 23/09/2015 01:04, Walter L. wrote:

Hi,

I've just performed a fresh install of the latest (2.2.1) Cygwin on 64-bit 
Windows 7 and noticed 2 issues with the new version that I'd like to verify 
whether or not they are bugs:

1) The symlink to protocol file seems incorrect

[user@hostname /etc]$ ls -l | grep protocol
lrwxrwxrwx  1 user Domain Users 50 Sep 22 17:03 protocols -> 
/cygdrive/c/Windows/System32/drivers/etc/protocols
[user@hostname /etc]$ ls -l /cygdrive/c/Windows/System32/drivers/etc | grep 
protocol
-rwxrwx---+ 1 SYSTEM SYSTEM  1358 Jun 10  2009 protocol

I believe the target of the symlink should be "protocol" (i.e. singular)


Corinna,

the bug is in the
  /etc/postinstall/base-files-mketc.sh
of base-files-4.2-3


FILES="hosts protocols services networks"
OSNAME="$(/usr/bin/uname -s)"
WINETC="$(/usr/bin/cygpath -S -u)/drivers/etc"

[cut]

for mketc in ${FILES}
do
  if [ ! -e "/etc/${mketc}" -a ! -L "/etc/${mketc}" ]
  then
/usr/bin/ln -s -v "${WINETC}/${mketc}" "/etc/${mketc}"
  fi
done


As on my systems the bug is not present,
it can be a relative recent introduction.

Regards
Marco




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



Re: base-files-4.2-3 : attention maintainer

2015-09-24 Thread Achim Gratz
Marco Atzeri writes:
> the bug is in the
>   /etc/postinstall/base-files-mketc.sh
> of base-files-4.2-3
>
> 
> FILES="hosts protocols services networks"
> OSNAME="$(/usr/bin/uname -s)"
> WINETC="$(/usr/bin/cygpath -S -u)/drivers/etc"
>
> [cut]
>
> for mketc in ${FILES}
> do
>   if [ ! -e "/etc/${mketc}" -a ! -L "/etc/${mketc}" ]
>   then
> /usr/bin/ln -s -v "${WINETC}/${mketc}" "/etc/${mketc}"
>   fi
> done
> 
>
> As on my systems the bug is not present,
> it can be a relative recent introduction.

I've introduced this bug inadvertently when releasing base-files-4.1.
I'll fix it towards the weekend.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada

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