This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: TAB-completion funny with dll files


----Original Message----
>From: Corinna Vinschen
>Sent: 14 April 2005 12:31

>>   Does anyone know why tab-completion doesn't work for .dll files?  
 ...snip...
>> What makes dlls so special?
> 
> Nothing?
> 
> $ ls -l /bin/cygw<TAB>
> 
> results in
> 
> $ ls -l /bin/cygwin1.dll
> 
> in both, tcsh and bash.  So what?


  Bizarre.  Doesn't work right for me.  I first noticed this because "cp
i686-pc-cygwin/winsup/cygwin/new-[TAB]" didn't do anything for me.  Let me
show you what happens when I try your example:

-------------------<snip!>-------------------
dk@mace /artimi/firmware> ls /bin/cygw*
/bin/cygwin1-1.5.11.dll          /bin/cygwin1-20050404.dll
/bin/cygwin1-20040103.dll        /bin/cygwin1-20050414.dll
/bin/cygwin1-20040719.dll        /bin/cygwin1-clip-debug.dll
/bin/cygwin1-20041201.dll        /bin/cygwin1.dll
/bin/cygwin1-20050228.dll        /bin/cygwin1.dll.current
/bin/cygwin1-20050302-finit.dll  /bin/cygwin1.dll.gcc
/bin/cygwin1-20050302.dll        /bin/cygwin1.dll.vec
/bin/cygwin1-20050303.dll        /bin/cygwin1.dll.working
/bin/cygwin1-20050404-b.dll
dk@mace /artimi/firmware> ls /bin/cygwin1.dll.[TAB-TAB]
cygwin1.dll.current  cygwin1.dll.vec
cygwin1.dll.gcc      cygwin1.dll.working
dk@mace /artimi/firmware> ls /bin/cygwin1.dll.
-------------------<snip!>-------------------

  Hm, let me see what the perms look like on one that works and one that
doesn't:

-------------------<snip!>-------------------
dk@mace /artimi/firmware> ls -la /bin/cygwin1.dll.v[TAB]
-rwx------+   1 dk       Domain U   623104 Nov 11  2000 /bin/cygwin1.dll.vec
dk@mace /artimi/firmware> ls -la
/bin/cygwin1-c[TAB-TAB-TAB-WHY-DOESN'T-IT-WORK-GODDAMIT-oh-well-i'll-just-ha
ve-to-type-it-manually]lip-debug.dll
-rwxr-xr-x    1 dk       Domain U  8520815 Mar  4 17:30
/bin/cygwin1-clip-debug.
dll
dk@mace /artimi/firmware>
dk@mace /artimi/firmware> getfacl /bin/cygwin1.dll.vec
# file: /bin/cygwin1.dll.vec
# owner: dk
# group: Domain Users
user::rwx
group::---
group:root:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:---
dk@mace /artimi/firmware> getfacl /bin/cygwin1-clip-debug.dll
# file: /bin/cygwin1-clip-debug.dll
# owner: dk
# group: Domain Users
user::rwx
group::r-x
mask:rwx
other:r-x
dk@mace /artimi/firmware>
-------------------<snip!>-------------------

  Wow.  I assume that TAB-completion is not performed in the context of the
system user, so it must just be the 'Users:r-x' group that's doing it.

  Um, no, it isn't.  I've now setfacl'd the two files identically, and it
still doesn't work.

-------------------<snip!>-------------------
dk@mace /artimi/firmware> getfacl /bin/cygwin1.dll.vec
# file: /bin/cygwin1.dll.vec
# owner: dk
# group: Domain Users
user::rwx
group::---
group:root:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:---
dk@mace /artimi/firmware>  getfacl /bin/cygwin1-clip-debug.dll
# file: /bin/cygwin1-clip-debug.dll
# owner: dk
# group: Domain Users
user::rwx
group::---
group:root:rwx
group:SYSTEM:rwx
group:Users:r-x
mask:rwx
other:r-x
dk@mace /artimi/firmware> ls /bin/cygwi[TAB]n1.dll.[TAB-TAB]
cygwin1.dll.current  cygwin1.dll.vec
cygwin1.dll.gcc      cygwin1.dll.working
dk@mace /artimi/firmware> ls /bin/cygwin1.dll.
-------------------<snip!>-------------------

  Hmmmm.  Now what?  I know, let's check the cacls.  [What idio^Wmicrosoft
programmer decided to align all the output against a margin the length of
the filename?  Yeh, all that wrapped illegible output really looks soooo
much neater and tidier.  Morons.]

-------------------<snip!>-------------------
C:\cygwin\bin>cacls cygwin1.dll.vec
C:\cygwin\bin\cygwin1.dll.vec
BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
ARTIMI_CAM\dk:F
BUILTIN\Users:R

C:\cygwin\bin>cacls cygwin1-clip-debug.dll
C:\cygwin\bin\cygwin1-clip-debug.dll
ARTIMI_CAM\dk:F
ARTIMI_CAM\Domain Users:(special access:)
    READ_CONTROL
    FILE_READ_EA
    FILE_READ_ATTRIBUTES

BUILTIN\Administrators:(special access:)
    READ_CONTROL
    SYNCHRONIZE
    FILE_GENERIC_READ
    FILE_GENERIC_WRITE
    FILE_GENERIC_EXECUTE
    FILE_READ_DATA
    FILE_WRITE_DATA
    FILE_APPEND_DATA
    FILE_READ_EA
    FILE_WRITE_EA
    FILE_EXECUTE
    FILE_DELETE_CHILD
    FILE_READ_ATTRIBUTES
    FILE_WRITE_ATTRIBUTES

NT AUTHORITY\SYSTEM:(special access:)
    READ_CONTROL
    SYNCHRONIZE
    FILE_GENERIC_READ
    FILE_GENERIC_WRITE
    FILE_GENERIC_EXECUTE
    FILE_READ_DATA
    FILE_WRITE_DATA
    FILE_APPEND_DATA
    FILE_READ_EA
    FILE_WRITE_EA
    FILE_EXECUTE
    FILE_DELETE_CHILD
    FILE_READ_ATTRIBUTES
    FILE_WRITE_ATTRIBUTES

BUILTIN\Users:R
Everyone:R
-------------------<snip!>-------------------

  Well, the ordering is a bit different, and the BUILTIN\Administrators and
NT AUTH\SYSTEM ACLs have a few of the more exotic perms disabled (quota and
things), but there's really nothing I can see there that ought to make a
difference - unless someone else knows something I don't?

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]