SCCS-vsn: usr.sbin/sendmail/src/main.c 8.25
SCCS-vsn: usr.sbin/sendmail/src/queue.c 8.14
SCCS-vsn: usr.sbin/sendmail/src/conf.c 8.25
-static char sccsid[] = "@(#)conf.c 8.24 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 8.25 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
"needvrfyhelo", PRIV_NEEDVRFYHELO,
"noexpn", PRIV_NOEXPN,
"novrfy", PRIV_NOVRFY,
"needvrfyhelo", PRIV_NEEDVRFYHELO,
"noexpn", PRIV_NOEXPN,
"novrfy", PRIV_NOVRFY,
- "restrictmailq", PRIV_RESTRMAILQ,
+ "restrictmailq", PRIV_RESTRICTMAILQ,
+ "restrictqrun", PRIV_RESTRICTQRUN,
"authwarnings", PRIV_AUTHWARNINGS,
"goaway", PRIV_GOAWAY,
NULL, 0,
"authwarnings", PRIV_AUTHWARNINGS,
"goaway", PRIV_GOAWAY,
NULL, 0,
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 8.24 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 8.25 (Berkeley) %G%";
#endif /* not lint */
#define _DEFINE
#endif /* not lint */
#define _DEFINE
BlankEnvelope.e_flags |= EF_METOO;
# ifdef QUEUE
BlankEnvelope.e_flags |= EF_METOO;
# ifdef QUEUE
- if (queuemode && RealUid != 0)
+ if (queuemode && RealUid != 0 && bitset(PRIV_RESTRICTQRUN, PrivacyFlags))
if (stbuf.st_uid != RealUid)
{
/* nope, really a botch */
if (stbuf.st_uid != RealUid)
{
/* nope, really a botch */
- usrerr("Permission denied");
+ usrerr("You do not have permission to process the queue");
#ifndef lint
#ifdef QUEUE
#ifndef lint
#ifdef QUEUE
-static char sccsid[] = "@(#)queue.c 8.13 (Berkeley) %G% (with queueing)";
+static char sccsid[] = "@(#)queue.c 8.14 (Berkeley) %G% (with queueing)";
-static char sccsid[] = "@(#)queue.c 8.13 (Berkeley) %G% (without queueing)";
+static char sccsid[] = "@(#)queue.c 8.14 (Berkeley) %G% (without queueing)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
** Check for permission to print the queue
*/
** Check for permission to print the queue
*/
- if (bitset(PRIV_RESTRMAILQ, PrivacyFlags) && RealUid != 0)
+ if (bitset(PRIV_RESTRICTMAILQ, PrivacyFlags) && RealUid != 0)
{
struct stat st;
# ifdef NGROUPS
{
struct stat st;
# ifdef NGROUPS