Skip to content

Commit

Permalink
[IA64] Low byte of current->personality is not a bitmask.
Browse files Browse the repository at this point in the history
Peter Staubach pointed out that it is not correct to check
current->personality & PER_LINUX32 (this will have false
hits on several other personality values).

Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Tony Luck committed Aug 30, 2005
1 parent 288ceb8 commit ff67b59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-ia64/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ struct flock {

#define F_LINUX_SPECIFIC_BASE 1024

#define force_o_largefile() ( ! (current->personality & PER_LINUX32) )
#define force_o_largefile() \
(personality(current->personality) != PER_LINUX32)

#endif /* _ASM_IA64_FCNTL_H */

0 comments on commit ff67b59

Please sign in to comment.