| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Mon, 2 Jul 2001 14:52:09 +0200 |
| From: | Ronny Buchmann <rbla AT gmx DOT de> |
| To: | cygwin AT cygwin DOT com |
| Subject: | mkpasswd: problem with (UNC-)paths including dollar sign |
| Message-ID: | <20010702145209.B4065@cad.star> |
| Mime-Version: | 1.0 |
| User-Agent: | Mutt/1.2.5i |
| X-Operating-System: | Linux 2.4.5-ac9 i686 |
| Organization: | privat |
hi
mkpasswd has a problem with special paths like \\server\user$
it seems that windows quotes the $ with $ (so it gives $$)
below is a patch which changes the behaviour of mkpasswd, but it probably has to be fixed elsewhere
(it does of course only work with mkpasswd -m)
$ diff -up mkpasswd.c.orig mkpasswd.c
--- mkpasswd.c.orig Mon Jul 2 11:35:07 2001
+++ mkpasswd.c Mon Jul 2 12:19:07 2001
@@ -83,6 +83,11 @@ psx_dir (char *in, char *out)
{
if (*in == '\\')
*out = '/';
+ else if (*in == '$')
+ if (*(in+1) == '$')
+ *out = '$';
+ else
+ out--;
else
*out = *in;
in++;
--
thanks
ronny
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |