| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <4F055774D458D51195BC000347246B39E80397@xcguk001.inri.co.uk> |
| From: | "Watts, Simon (UK)" <swatts AT northgrum-it DOT eu DOT com> |
| To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
| Subject: | RE: cygpath -s behaviour |
| Date: | Fri, 6 Sep 2002 15:28:21 +0100 |
| MIME-Version: | 1.0 |
> DWORD len = GetShortPathName (filename, buf, MAX_PATH);
> if (len == 0 && GetLastError () == ERROR_INVALID_PARAMETER)
> {
> fprintf (stderr, "%s: cannot create short name of
> %s\n", prog_name,
> filename);
> exit (2);
> }
The above code snippet is as in the src.tar.bz2 archive for the
version of cygwin which I have.
V strange, this should work...
Check that GetShortPathName _is_ returning 0 on fail? Try
the test 'len <= 0' instead?
SAW.
--
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 |