diff options
author | Jeremy Allison <jra@samba.org> | 2001-11-10 01:49:50 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-11-10 01:49:50 +0000 |
commit | 461641d0de74fbf0317079c3a91aaa55f2e91796 (patch) | |
tree | 841414c254f2fd3b3a8e6587b3303055588a7455 /source3/smbd/trans2.c | |
parent | 89c6eed93baed829c555e62b83a6350db2f6647b (diff) | |
download | samba-461641d0de74fbf0317079c3a91aaa55f2e91796.tar.gz samba-461641d0de74fbf0317079c3a91aaa55f2e91796.tar.xz samba-461641d0de74fbf0317079c3a91aaa55f2e91796.zip |
Use defined constants not integers.
Jeremy.
(This used to be commit d20949fe509c1496bc434f0fbf403f0b69ab9954)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r-- | source3/smbd/trans2.c | 6 |
1 files 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 <eggert@twinsun.com>. */ 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. |