X-Git-Url: https://git.distorted.org.uk/~mdw/checkpath/blobdiff_plain/69961f7b0d88df9ee284375491389b63d2c520ae..7868d789c2b2f6a074b7fc14cd4dc482957c90b5:/checkpath.h diff --git a/checkpath.h b/checkpath.h index e759c07..74cd0f5 100644 --- a/checkpath.h +++ b/checkpath.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: checkpath.h,v 1.1 1999/04/06 20:12:07 mdw Exp $ + * $Id: checkpath.h,v 1.2 2001/01/25 22:16:02 mdw Exp $ * * Check a path for safety * @@ -29,8 +29,11 @@ /*----- Revision history --------------------------------------------------* * * $Log: checkpath.h,v $ - * Revision 1.1 1999/04/06 20:12:07 mdw - * Initial revision + * Revision 1.2 2001/01/25 22:16:02 mdw + * Make flags be unsigned. + * + * Revision 1.1.1.1 1999/04/06 20:12:07 mdw + * Import new project. * */ @@ -59,7 +62,7 @@ struct chkpath { gid_t cp_gid[NGROUPS_MAX + 1]; /* Array of groups that are OK */ int cp_gids; /* Number of groups in the array */ int cp_verbose; /* Verbosity level to spit up */ - int cp_what; /* What things to check for */ + unsigned cp_what; /* What things to check for */ void (*cp_report)(int /*what*/, int /*verb*/, const char */*dir*/, const char */*msg*/, void */*p*/); @@ -68,14 +71,14 @@ struct chkpath { /* --- Flags for `@what@' fields in the above --- */ -#define CP_ERROR 1 /* Error report */ -#define CP_WRWORLD 2 /* Check write by world */ -#define CP_WRGRP 4 /* Check write by any group */ -#define CP_WROTHGRP 8 /* Check write by other group */ -#define CP_WROTHUSR 16 /* Check write by other user */ -#define CP_SYMLINK 32 /* Report symbolic links */ -#define CP_REPORT 64 /* Make user-readable reports */ -#define CP_STICKYOK 128 /* Don't care if sticky is set */ +#define CP_ERROR 1u /* Error report */ +#define CP_WRWORLD 2u /* Check write by world */ +#define CP_WRGRP 4u /* Check write by any group */ +#define CP_WROTHGRP 8u /* Check write by other group */ +#define CP_WROTHUSR 16u /* Check write by other user */ +#define CP_SYMLINK 32u /* Report symbolic links */ +#define CP_REPORT 64u /* Make user-readable reports */ +#define CP_STICKYOK 128u /* Don't care if sticky is set */ /*----- Functions provided ------------------------------------------------*/