mount-util: do not use the official MAX_HANDLE_SZ (#7523)
If we'd use the system header's version of MAX_HANDLE_SZ then our code would break on older kernels as soon as the value is increased, as old kernels refuse larger buffers with EINVAL.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
1ff8b31d9b
commit
01a7e0a14d
@@ -543,10 +543,6 @@ struct btrfs_ioctl_quota_ctl_args {
|
||||
#define PR_SET_CHILD_SUBREAPER 36
|
||||
#endif
|
||||
|
||||
#ifndef MAX_HANDLE_SZ
|
||||
#define MAX_HANDLE_SZ 128
|
||||
#endif
|
||||
|
||||
#if ! HAVE_SECURE_GETENV
|
||||
# if HAVE___SECURE_GETENV
|
||||
# define secure_getenv __secure_getenv
|
||||
|
||||
Reference in New Issue
Block a user