This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: mkshortcut debugging problem
- From: Charles Wilson <cwilson at ece dot gatech dot edu>
- To: Joshua Daniel Franklin <joshuadfranklin at yahoo dot com>
- Cc: cygwin at cygwin dot com
- Date: Thu, 28 Feb 2002 20:34:16 -0500
- Subject: Re: mkshortcut debugging problem
- References: <20020301000334.69284.qmail@web20006.mail.yahoo.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/