delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/28/20:37:22

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3C7EDA98.9090203@ece.gatech.edu>
Date: Thu, 28 Feb 2002 20:34:16 -0500
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Joshua Daniel Franklin <joshuadfranklin AT yahoo DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: mkshortcut debugging problem
References: <20020301000334 DOT 69284 DOT qmail AT web20006 DOT mail DOT yahoo DOT com>

Joshua Daniel Franklin wrote:

> 
> The code that produces this error is:
> 
>       MultiByteToWideChar (CP_ACP, 0, lname, -1, widepath, MAX_PATH);
>       hres = pf->lpVtbl->Save (pf, widepath, TRUE);
>       if (!SUCCEEDED(hres)) 
>       {
>         fprintf(stderr, "%s: Save to persistant storage failed (Does the
> directo
> ry you are writing to exist?)\n", prog_name);
>         exit(3);
>       }
> 
> I'm afraid I have no idea how to debug this, and I've begun to make what
> seem like arbitrary changes. Why would it work from one directory and not
> another? (BTW, I tried printf'ing the lname string and it is identical in
> both cases.) Anyone have any suggestions?


Permissions or ACLs on the two different directories?  Try

getfacl {dir1}
getfacl {dir2}

Same?  Different?

--Chuck



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019