From: Jeremy Allison Date: Wed, 17 Nov 2004 17:51:27 +0000 (+0000) Subject: r3814: At least use a proper constant name (aRONLY :-) not a number. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5585 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d84f5f8cc10f89d5fbd6cfb694bccfbd1c3d8a3f;p=thirdparty%2Fsamba.git r3814: At least use a proper constant name (aRONLY :-) not a number. That way we can at least remember why we did this :-). Jeremy. --- diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 31a39615508..afe4d352ffd 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -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; }