I'm still running oi_148 and would like to add the attached patch provided
by Yuri Pankov, but I have no idea how to add it.  Can someone tell me what
I need to do?

Martin

On Wed, Sep 5, 2012 at 4:14 AM, Yuri Pankov <[email protected]> wrote:

> On Wed, 05 Sep 2012 03:37:16 -0700, Martin Frost wrote:
>
>> Our users running Lion have a major access problem with CIFS shares
>> on an oi_148 machine.  The Finder is unable (or unwilling) to open
>> subdirectories of the share's top level.
>>
>> The problem seems to be only in the Finder, since other programs
>> (e.g., Terminal or Pages) can navigate down through the CIFS tree.
>> For that matter, the Finder can access *files* in the top level, just
>> not subdirectories; for instance, QuickLook works on top-level files.
>>
>> I don't know if this is really a Finder bug or a OI bug (or both), but
>> I've read that it was fixed in Nexenta before the end of November
>> 2011.
>>
>> Has this problem been fixed in OI?  Any chance for a fix in oi_148?
>>
>

> This should be fixed in illumos:
>
> changeset:   13513:f84d4672fdbd
> user:        Gordon Ross <[email protected]>
> date:        Wed Nov 09 18:47:36 2011 -0500
> description:
>         1718 MacOS X Lion (10.7) Finder access denied
>         Reviewed by: Dan McDonald <[email protected]>
>         Reviewed by: Albert Lee <[email protected]>
>         Reviewed by: Andrew Stormont <[email protected]>
>         Reviewed by: Richard Lowe <[email protected]>
>         Approved by: Eric Schrock <[email protected]>
>
> and should be available in the latest OI release (oi151a5, probably). The
> fix itself is pretty simple (attached).
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> [email protected]
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
>
changeset:   13513:f84d4672fdbd
user:        Gordon Ross <[email protected]>
date:        Wed Nov 09 18:47:36 2011 -0500
description:
        1718 MacOS X Lion (10.7) Finder access denied
        Reviewed by: Dan McDonald <[email protected]>
        Reviewed by: Albert Lee <[email protected]>
        Reviewed by: Andrew Stormont <[email protected]>
        Reviewed by: Richard Lowe <[email protected]>
        Approved by: Eric Schrock <[email protected]>

diff -r 060607df0c9d -r f84d4672fdbd 
usr/src/uts/common/fs/smbsrv/smb_common_open.c
--- a/usr/src/uts/common/fs/smbsrv/smb_common_open.c    Tue Nov 08 17:01:06 
2011 -0500
+++ b/usr/src/uts/common/fs/smbsrv/smb_common_open.c    Wed Nov 09 18:47:36 
2011 -0500
@@ -20,6 +20,7 @@
  */
 
 /*
+ * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
@@ -59,11 +60,15 @@
  *               FILE_WRITE_ATTRIBUTES, FILE_WRITE_EA, and FILE_APPEND_DATA
  *
  * GENERIC_EXECUTE     STANDARD_RIGHTS_EXECUTE, SYNCHRONIZE, and FILE_EXECUTE.
+ *
+ * Careful, we have to emulate some Windows behavior here.
+ * When requested access == zero, you get READ_CONTROL.
+ * MacOS 10.7 depends on this.
  */
 uint32_t
 smb_access_generic_to_file(uint32_t desired_access)
 {
-       uint32_t access = 0;
+       uint32_t access = READ_CONTROL;
 
        if (desired_access & GENERIC_ALL)
                return (FILE_ALL_ACCESS & ~SYNCHRONIZE);

_______________________________________________
OpenIndiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to