]> granicus.if.org Git - strace/blobdiff - filter_qualify.c
mmap_cache: add function to enable mmap_cache
[strace] / filter_qualify.c
index 554536a29f19165de0e0a75910776ae0ba1052a1..49f0d612046384aef2ef28461d56c33fed6a05e0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
- * Copyright (c) 2016-2017 The strace developers.
+ * Copyright (c) 2016-2018 The strace developers.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -139,7 +139,7 @@ parse_inject_token(const char *const token, struct inject_opts *const fopts,
                                  " clipped to %d in compat personality",
                                  intval, (int) intval);
 
-               if ((int) intval < 0 && (int) intval >= -4095)
+               if ((int) intval < 0 && (int) intval >= -MAX_ERRNO_VALUE)
                        error_msg("Inadvertent injection of error %d is"
                                  " possible in compat personality for"
                                  " retval=%" PRI_kld,