diff options
author | Andrej Zverev <az@FreeBSD.org> | 2005-10-06 12:59:01 +0000 |
---|---|---|
committer | Andrej Zverev <az@FreeBSD.org> | 2005-10-06 12:59:01 +0000 |
commit | d4d7e2ee600dc92dcaff29809f55fe7c5e8d2e06 (patch) | |
tree | 8b0f0b39acd1ec8452ab7103604e813832014ea1 /sysutils/and/files/patch-and.c | |
parent | Update to 4.74 (diff) |
- Update to version 1.22
Approved by: sem (mentor)
Notes
Notes:
svn path=/head/; revision=144397
Diffstat (limited to 'sysutils/and/files/patch-and.c')
-rw-r--r-- | sysutils/and/files/patch-and.c | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sysutils/and/files/patch-and.c b/sysutils/and/files/patch-and.c new file mode 100644 index 000000000000..cc857092a9d9 --- /dev/null +++ b/sysutils/and/files/patch-and.c @@ -0,0 +1,51 @@ +--- and.c.orig Mon Apr 5 23:19:01 2004 ++++ and.c Thu Oct 6 16:04:09 2005 +@@ -47,7 +47,11 @@ + #include <sys/types.h> + #include <signal.h> + #include <regex.h> +-#include <values.h> ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500014 ++#include <sys/limits.h> ++#else ++#include <limits.h> ++#endif + + #define DEBUG 0 + +@@ -714,7 +718,7 @@ + } else if (and_db.entry[i].uid == -1) { + exactness[i] = 0; + } else { +- exactness[i] = -MAXINT; ++ exactness[i] = -INT_MAX; + } + /* group id */ + if (gid == and_db.entry[i].gid) { +@@ -722,7 +726,7 @@ + } else if (and_db.entry[i].gid == -1) { + exactness[i] += 0; + } else { +- exactness[i] = -MAXINT; ++ exactness[i] = -INT_MAX; + } + /* command */ + if (command!=NULL && regexec(and_db.entry[i].command,command,0,0,0) == 0) { +@@ -730,7 +734,7 @@ + } else if (strcmp(and_db.entry[i].command_str,"*") == 0) { + exactness[i] += 0; + } else { +- exactness[i] = -MAXINT; ++ exactness[i] = -INT_MAX; + } + /* parent */ + par = parent; +@@ -745,7 +749,7 @@ + exactness[i] += 0; + break; + } else if (last) { +- exactness[i] = -MAXINT; ++ exactness[i] = -INT_MAX; + break; + } + par = par->parent; |