public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Pawel Jasinski <pawel.jasinski@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Side-by-side configuration is incorrect reported as permission denied
Date: Sun, 12 Aug 2012 19:59:00 -0000	[thread overview]
Message-ID: <CA+7conm=AXUX9Xfj67tGRgMbrgC47W9QHuQ2L3V2p_=7Cf81GQ@mail.gmail.com> (raw)
In-Reply-To: <20120812170641.GC32748@ednor.casa.cgf.cx>

hi,

On Sun, Aug 12, 2012 at 7:06 PM, Christopher Faylor wrote:
> On Sun, Aug 12, 2012 at 11:07:00AM +0200, Pawel Jasinski wrote:
>>Hi,
>>
>>>
>>> Cygwin doesn't report Windows error codes.  It reports POSIX ones.  I
>>> have no idea why there would be a POSIX error code for side-by-side
>>> errors but if there were, then reporting that is more appropriate.
>>>
>>
>>out of curiosity I have poked into errno.h (as well as man page) on
>>linux and linux is easier on its users.
>>It uses values defined by POSIX as well as values which make sense in
>>context of Linux.
>>Would you consider relaxing your policy in respect of error codes and
>>POSIX where would it be a benefit for the user?
>>
>>In this particular case, all situation where errno (or a message) is
>>simply reported back to the user would be fine.
>>Only code which does errno specific attempts to recover or be clever
>>about it would be affected.
>
> Yes, and, what do we do with these "clever" apps?  Tell them that they
> are out of luck because we've just pulled the rug out from under them?


For the clever apps, I wonder what the app can do about no permissions
anyway other than report it.
And since the problem reported now as permission problem has nothing
to do with it, the corrective actions are adding to the confusion.

Most of the one I know report errno and eventually error message and
say bye bye. It is up to you to sudo or "run as".
I am still not at home, so no stats from the packages.

>
>>At the moment I my internet access is weak, but once I am at home this
>>would be a grep through cygwin packages to find out such a use.
>
> Windows has 15999 error codes.  Linux has ~133.  Some UNIX apps which
> recognize errnos rely on being able to index into the "sys_errlist"
> array.  This would mean that we would need to set up a sys_errlist
> array with all of these error codes, and since we already map a lot
> of them, come up with some way to deal with that.

wow, the number of error codes is impressive.
But we are talking about one, not 15999 minus whatever is already mapped.
How about taking care of the things which annoys your users.
This potentially would have a very positive side effect, decreased
traffic on this mailing list.

>
> If you can find a nice Linux errno which maps from ERROR_SXS_CANT_GEN_ACTCTX
> to something other than EACCES I'd be happy to change Cygwin.

Sorry I was not clear. The point was not to use linux error code. what
I was trying to say is linux does not follow POSIX only error codes
policy.
Such a policy is impractical. Your point was POSIX only, wasn't it?
You can add cygwin specific error codes.


> Otherwise,
> no, I'm not going to worry about this issue.

Could you please qualify your no.
No, as long as you have to do it yourself.
No, no patches will be considered.
No, even if the request comes from red hat support channel (I consider
buying one, I wonder what can I get for the money).


Cheers,
Pawel

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

  reply	other threads:[~2012-08-12 17:56 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-11  0:45 Andrew DeFaria
2012-08-11 10:35 ` Larry Hall (Cygwin)
2012-08-11 17:32   ` Earnie Boyd
2012-08-11 19:23   ` Andrew DeFaria
2012-08-11 19:54     ` Christopher Faylor
2012-08-12  4:24       ` Cliff Hones
2012-08-12  9:07       ` Andrew DeFaria
2012-08-12 12:35   ` Pawel Jasinski
2012-08-12 17:56     ` Christopher Faylor
2012-08-12 19:59       ` Pawel Jasinski [this message]
2012-08-12 20:54         ` Earnie Boyd
2012-08-12 21:30           ` Christopher Faylor
2012-08-13  1:05             ` Pawel Jasinski
2012-08-13  8:28               ` Herbert Stocker
2012-08-13 10:05                 ` Corinna Vinschen
2012-08-13 12:51                   ` Herbert Stocker
2012-08-13 13:11                 ` Earnie Boyd
2012-08-13 13:21                   ` Corinna Vinschen
2012-08-13 13:28                     ` Earnie Boyd
2012-08-13 14:32                       ` Corinna Vinschen
2012-08-13 13:51                   ` Cliff Hones
2012-08-13 15:15                 ` Christopher Faylor
2012-08-13  3:49           ` Andrew DeFaria
2012-08-13  8:48             ` Corinna Vinschen
2012-08-13 14:43               ` Andrew DeFaria
2012-08-13 14:59                 ` Corinna Vinschen
2012-08-13 15:01                   ` Andrew DeFaria
2012-08-13 15:22                     ` Corinna Vinschen
2012-08-13 15:40                       ` Andrew DeFaria
2012-08-13 15:33                 ` Christopher Faylor
2012-08-13 16:02                   ` Andrew DeFaria
2012-08-13 16:19                     ` Corinna Vinschen
2012-08-13 17:57                       ` Andrew DeFaria
2012-08-14 21:11                   ` Andrey Repin
2012-08-15  4:23                     ` Christopher Faylor
2012-08-13 18:56 Pawel Jasinski
2012-08-13 19:12 ` Christopher Faylor
2012-08-13 21:49   ` Daniel Colascione
2012-08-14  0:42     ` Pawel Jasinski
2012-08-14  3:12       ` Christopher Faylor
2012-08-14  8:38       ` Eric Blake
2012-08-14  9:16         ` Pawel Jasinski
2012-08-14 15:10           ` Christopher Faylor
2012-08-14 21:37             ` Pawel Jasinski
2012-08-15  5:37               ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+7conm=AXUX9Xfj67tGRgMbrgC47W9QHuQ2L3V2p_=7Cf81GQ@mail.gmail.com' \
    --to=pawel.jasinski@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).