/*
* "$Id: usb-darwin.c 7953 2008-09-17 01:43:19Z mike $"
*
-* Copyright 2005-2010 Apple Inc. All rights reserved.
+* Copyright 2005-2011 Apple Inc. All rights reserved.
*
* IMPORTANT: This Apple software is supplied to you by Apple Computer,
* Inc. ("Apple") in consideration of your agreement to the following
"permissions (0%o/uid=%d/gid=%d).\n", bundlestr,
bundleinfo.st_mode, (int)bundleinfo.st_uid,
(int)bundleinfo.st_gid);
- fputs("STATE: +cups-insecure-filter-warning\n", stderr);
-
- if (bundleinfo.st_uid || (bundleinfo.st_mode & S_IWOTH))
+ if (bundleinfo.st_uid ||
+ (bundleinfo.st_gid && bundleinfo.st_gid != 80 &&
+ (bundleinfo.st_mode & S_IWGRP)) ||
+ (bundleinfo.st_mode & (S_ISUID | S_IWOTH)))
+ fputs("STATE: +cups-insecure-filter-warning\n", stderr);
+
+ if (bundleinfo.st_uid ||
+ (bundleinfo.st_gid && bundleinfo.st_gid != 80 &&
+ (bundleinfo.st_mode & S_IWOTH)))
{
if (driverPath)
return (load_classdriver(NULL, intf, printerDriver));