/* -*-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
*
/*----- 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.
*
*/
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*/);
/* --- 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 ------------------------------------------------*/