/*
- * "$Id: client.c,v 1.91.2.61 2003/07/19 21:57:46 mike Exp $"
+ * "$Id: client.c,v 1.91.2.62 2003/07/19 22:13:52 mike Exp $"
*
* Client routines for the Common UNIX Printing System (CUPS) scheduler.
*
if (setuid(User))
exit(errno);
}
+ else
+ {
+ /*
+ * Reset group membership to just the main one we belong to.
+ */
- /*
- * Reset group membership to just the main one we belong to.
- */
-
- setgroups(0, NULL);
+ setgroups(0, NULL);
+ }
/*
* Update stdin/stdout/stderr...
/*
- * End of "$Id: client.c,v 1.91.2.61 2003/07/19 21:57:46 mike Exp $".
+ * End of "$Id: client.c,v 1.91.2.62 2003/07/19 22:13:52 mike Exp $".
*/
/*
- * "$Id: dirsvc.c,v 1.73.2.33 2003/05/12 20:52:12 mike Exp $"
+ * "$Id: dirsvc.c,v 1.73.2.34 2003/07/19 22:13:53 mike Exp $"
*
* Directory services routines for the Common UNIX Printing System (CUPS).
*
if (setgid(Group))
exit(errno);
+ if (setgroups(0, NULL))
+ exit(errno);
+
if (setuid(User))
exit(errno);
}
+ else
+ {
+ /*
+ * Reset group membership to just the main one we belong to.
+ */
- /*
- * Reset group membership to just the main one we belong to.
- */
-
- setgroups(0, NULL);
+ setgroups(0, NULL);
+ }
/*
* Redirect stdin and stdout to /dev/null, and stderr to the
/*
- * End of "$Id: dirsvc.c,v 1.73.2.33 2003/05/12 20:52:12 mike Exp $".
+ * End of "$Id: dirsvc.c,v 1.73.2.34 2003/07/19 22:13:53 mike Exp $".
*/
/*
- * "$Id: job.c,v 1.124.2.73 2003/07/19 21:57:47 mike Exp $"
+ * "$Id: job.c,v 1.124.2.74 2003/07/19 22:13:54 mike Exp $"
*
* Job management routines for the Common UNIX Printing System (CUPS).
*
if (setuid(User))
exit(errno);
}
+ else
+ {
+ /*
+ * Reset group membership to just the main one we belong to.
+ */
- /*
- * Reset group membership to just the main one we belong to.
- */
-
- setgroups(0, NULL);
+ setgroups(0, NULL);
+ }
/*
* Change umask to restrict permissions on created files...
/*
- * End of "$Id: job.c,v 1.124.2.73 2003/07/19 21:57:47 mike Exp $".
+ * End of "$Id: job.c,v 1.124.2.74 2003/07/19 22:13:54 mike Exp $".
*/