r3814: At least use a proper constant name (aRONLY :-) not a number.
authorJeremy Allison <jra@samba.org>
Wed, 17 Nov 2004 17:51:27 +0000 (17:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:18 +0000 (10:53 -0500)
That way we can at least remember why we did this :-).
Jeremy.

source/smbd/trans2.c

index 31a396155080675e5877d06352496c68cbdcb431..afe4d352ffd7b50c5df534423c279ff3a9d513a4 100644 (file)
@@ -967,7 +967,7 @@ static BOOL get_lanman2_dir_entry(connection_struct *conn,
                                /* This is necessary, as otherwise the
                                 * desktop.ini file in this folder is
                                 * ignored */
-                               mode |= (lp_profile_acls(SNUM(conn)) ? 1 : 0);
+                               mode |= (lp_profile_acls(SNUM(conn)) ? aRONLY : 0);
                                file_size = 0;
                        }
 
@@ -2515,7 +2515,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn, char *inbuf, char *
        if (mode & aDIR) {
                /* This is necessary, as otherwise the desktop.ini file in
                 * this folder is ignored */
-               mode |= (lp_profile_acls(SNUM(conn)) ? 1 : 0);
+               mode |= (lp_profile_acls(SNUM(conn)) ? aRONLY : 0);
                file_size = 0;
        }