Re: (call-process ...) hangs in emacs

2014-08-27 Thread Andrey Repin
Greetings, Corinna Vinschen! > faccessat/access/eaccess don't try to be intelligent by themselves. > Rather they just call a Windows function if the filesystem is mounted > with "acl" mount flags: > - Fetch file's security descriptor > - Create process impersonation token. > - Call NtAccessCheck

Re: connect() hangs on a listen()ing AF_UNIX socket

2014-08-27 Thread Achim Gratz
Corinna Vinschen writes: >> Fixed in CVS. The idea to reopen the file by handle is still good. >> *Iff* there is an open handle to the file to begin with... >> >> I'm just creating a snapshot but this may take a few minutes longer >> than anticipated due to connection problems. > > Snapshot is up

Re: (call-process ...) hangs in emacs

2014-08-27 Thread Ken Brown
On 8/27/2014 10:40 AM, Eric Blake wrote: On 08/27/2014 07:47 AM, Corinna Vinschen wrote: Works for vim. Does the Emacs configure test only check for POSIX ACL functions and not for Solaris ACL functions, by any chance? I spoke too soon. It does detect that Cygwin has certain ACL functions.

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Corinna Vinschen
On Aug 27 19:04, Corinna Vinschen wrote: > On Aug 27 16:28, Achim Gratz wrote: > > Corinna Vinschen cygwin.com> writes: > > > > -v, please. What means "obviously" here? Did you ask Netapp? > > > > No, I've tried all combinations of parameters to the open calls to > > absolutely no avail. I the

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Corinna Vinschen
On Aug 27 16:28, Achim Gratz wrote: > Corinna Vinschen cygwin.com> writes: > > > -v, please. What means "obviously" here? Did you ask Netapp? > > No, I've tried all combinations of parameters to the open calls to > absolutely no avail. I then started to look at what the VolumeInformation > cal

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Achim Gratz
Corinna Vinschen cygwin.com> writes: > > -v, please. What means "obviously" here? Did you ask Netapp? No, I've tried all combinations of parameters to the open calls to absolutely no avail. I then started to look at what the VolumeInformation call is supposed to be doing and decided that this

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Corinna Vinschen
On Aug 27 17:15, Corinna Vinschen wrote: > On Aug 27 15:06, Achim Gratz wrote: > > Corinna Vinschen cygwin.com> writes: > > > The call to NtQueryVolumeInformationFile() in > > > fhandler_disk_file::fstatvfs() in fhandler_disk_file.cc (line 737ff), > > > fails with STATUS_INVALID_PARAMETER. This i

Re: (call-process ...) hangs in emacs

2014-08-27 Thread Achim Gratz
Ken Brown cornell.edu> writes: > Achim, could you send me a recipe for reproducing the problem so that I > can test further? Please be very detailed; I have no experience with ACLs. Let's get one issue out of the way first that may be a Cygwin bug: on Linux a file with all access removed via st

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Corinna Vinschen
On Aug 27 15:06, Achim Gratz wrote: > Corinna Vinschen cygwin.com> writes: > > The call to NtQueryVolumeInformationFile() in > > fhandler_disk_file::fstatvfs() in fhandler_disk_file.cc (line 737ff), > > fails with STATUS_INVALID_PARAMETER. This is a NetApp bug, but we may > > be able to workaroun

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Achim Gratz
Corinna Vinschen cygwin.com> writes: > The call to NtQueryVolumeInformationFile() in > fhandler_disk_file::fstatvfs() in fhandler_disk_file.cc (line 737ff), > fails with STATUS_INVALID_PARAMETER. This is a NetApp bug, but we may > be able to workaround it. The bug (if there is one) is that the d

Re: (call-process ...) hangs in emacs

2014-08-27 Thread Eric Blake
On 08/27/2014 07:47 AM, Corinna Vinschen wrote: >>> >>> Works for vim. Does the Emacs configure test only check for POSIX >>> ACL functions and not for Solaris ACL functions, by any chance? >> >> I spoke too soon. It does detect that Cygwin has certain ACL functions. >> But the feature that Achi

Re: (call-process ...) hangs in emacs

2014-08-27 Thread Corinna Vinschen
On Aug 27 08:52, Ken Brown wrote: > On 8/27/2014 4:42 AM, Corinna Vinschen wrote: > >On Aug 26 18:12, Ken Brown wrote: > >>On 8/26/2014 2:55 PM, Achim Gratz wrote: > >>>2) Files that have no POSIX permissions (filemode ) and where access > >>>is granted via ACL only get always opened as "read-o

Re: (call-process ...) hangs in emacs

2014-08-27 Thread Ken Brown
On 8/27/2014 4:42 AM, Corinna Vinschen wrote: On Aug 26 18:12, Ken Brown wrote: On 8/26/2014 2:55 PM, Achim Gratz wrote: 2) Files that have no POSIX permissions (filemode ) and where access is granted via ACL only get always opened as "read-only" and you have to C-x C-q them before saving.

Re: connect() hangs on a listen()ing AF_UNIX socket

2014-08-27 Thread Corinna Vinschen
On Aug 27 11:50, Corinna Vinschen wrote: > On Aug 27 08:57, Achim Gratz wrote: > > Corinna Vinschen cygwin.com> writes: > > > I fixed that in CVS (and I'm just generating a snapshot). The problem > > > was that the functions reading and writing security descriptors didn't > > > use the special "r

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Achim Gratz
Corinna Vinschen cygwin.com> writes: > It's easier to do this from CVS. It also allows to create diffs > most easily. Did you build outside the source dir, as required? No can do CVS here... I just did a "./configure && make", which seemed to work (it built into x86_64_unknown_cygwin). > > Now

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Corinna Vinschen
On Aug 27 09:23, Achim Gratz wrote: > Corinna Vinschen cygwin.com> writes: > > > I've just set up for a build and ran into this (with the snapshot sources > > > from 2014-08-19 since these were the ones I had at hand): > > Sorted. I just did a native build from the 2014-08-25 snapshot (which is

Re: connect() hangs on a listen()ing AF_UNIX socket

2014-08-27 Thread Corinna Vinschen
On Aug 27 08:57, Achim Gratz wrote: > Corinna Vinschen cygwin.com> writes: > > I fixed that in CVS (and I'm just generating a snapshot). The problem > > was that the functions reading and writing security descriptors didn't > > use the special "reopen by handle" semantics of the NtOpenFile call i

Re: Why does df fail to stat CIFS shares?

2014-08-27 Thread Achim Gratz
Corinna Vinschen cygwin.com> writes: > > I've just set up for a build and ran into this (with the snapshot sources > > from 2014-08-19 since these were the ones I had at hand): Sorted. I just did a native build from the 2014-08-25 snapshot (which is also the installed version). Now what, is it

Re: connect() hangs on a listen()ing AF_UNIX socket

2014-08-27 Thread Achim Gratz
Corinna Vinschen cygwin.com> writes: > I fixed that in CVS (and I'm just generating a snapshot). The problem > was that the functions reading and writing security descriptors didn't > use the special "reopen by handle" semantics of the NtOpenFile call if > a reopen was necessary. Rather they jus

Re: (call-process ...) hangs in emacs

2014-08-27 Thread Corinna Vinschen
On Aug 26 18:12, Ken Brown wrote: > On 8/26/2014 2:55 PM, Achim Gratz wrote: > >Ken Brown writes: > >>It looks like my idea is going to work, but it needs testing to make > >>sure I've implemented it correctly. If anyone is willing to test it, > >>you can download emacs-24.3.93-2 from my personal