From 461641d0de74fbf0317079c3a91aaa55f2e91796 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 10 Nov 2001 01:49:50 +0000 Subject: Use defined constants not integers. Jeremy. (This used to be commit d20949fe509c1496bc434f0fbf403f0b69ab9954) --- source3/smbd/trans2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 16db64406b..4de728c734 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1837,7 +1837,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn, break; case SMB_SET_FILE_BASIC_INFO: - case 1004: + case SMB_FILE_BASIC_INFORMATION: { /* Patch to do this correctly from Paul Eggert . */ time_t write_time; @@ -2039,8 +2039,8 @@ static int call_trans2setfilepathinfo(connection_struct *conn, if(!((info_level == SMB_SET_FILE_END_OF_FILE_INFO) || (info_level == SMB_SET_FILE_ALLOCATION_INFO) || - (info_level == 1019) || - (info_level == 1020))) { + (info_level == SMB_FILE_ALLOCATION_INFORMATION) || + (info_level == SMB_FILE_END_OF_FILE_INFORMATION))) { /* * Only do this test if we are not explicitly * changing the size of a file. -- cgit