From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12518 invoked by alias); 26 Apr 2011 21:32:37 -0000 Received: (qmail 12507 invoked by uid 22791); 26 Apr 2011 21:32:37 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mailout02.t-online.de (HELO mailout02.t-online.de) (194.25.134.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Apr 2011 21:32:24 +0000 Received: from fwd00.aul.t-online.de (fwd00.aul.t-online.de ) by mailout02.t-online.de with smtp id 1QEps2-00066J-7e; Tue, 26 Apr 2011 23:32:34 +0200 Received: from [192.168.2.100] (GuBsUEZ1ohDM0WI-EaTV3JL-FWNFVBujClGUY34F-83ItYpUEq7XcoUk6aJRUfNQtS@[79.224.114.238]) by fwd00.aul.t-online.de with esmtp id 1QEprq-2IFEYa0; Tue, 26 Apr 2011 23:32:22 +0200 Message-ID: <4DB739E6.10301@t-online.de> Date: Wed, 27 Apr 2011 07:32:00 -0000 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.17) Gecko/20110123 SeaMonkey/2.0.12 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: [PATCH] base-files-4.0.6: Change prompt if running with admin rights References: <4D964392.6080809@t-online.de> <4DB45230.4080106@t-online.de> <4DB49339.9030909@gmail.com> <4DB73858.8070401@t-online.de> In-Reply-To: <4DB73858.8070401@t-online.de> Content-Type: multipart/mixed; boundary="------------050004080304070303000501" X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-04/txt/msg00376.txt.bz2 --------------050004080304070303000501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 160 Christian Franke wrote: > A test script for all shells is attached. Run with admin rights. > Requires cygdrop from cygutils package. > Now it is attached :-) --------------050004080304070303000501 Content-Type: text/plain; name="admtest.sh.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="admtest.sh.txt" Content-length: 413 #!/bin/sh #f=/proc/registry/HKEY_LOCAL_MACHINE/SAM/SAM f=/proc/registry/HKEY_LOCAL_MACHINE/SECURITY /bin/test -r $f || echo "test: false negative" cygdrop -- /bin/test -r $f && echo "test: false positive" for shell in bash zsh mksh posh dash; do /bin/$shell -c "[ -r $f ]" || echo "$shell: false negative" cygdrop -- /bin/$shell -c "[ -r $f ]" && echo "$shell: false positive" done --------------050004080304070303000501 Content-Type: text/plain; charset=us-ascii Content-length: 218 -- 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 --------------050004080304070303000501--