Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:s_liehmann
rlpr
rlpr-rlprm-user.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rlpr-rlprm-user.patch of Package rlpr
From: Ari Pollak <ari@debian.org> To: meem@gnu.org Cc: 349099-forwarded@bugs.debian.org Subject: rlpr patch to provide -U option in rlprm Date: Tue, 14 Mar 2006 11:59:32 -0500 Hi, Here is a patch to provide the -U/--user option in rlprm like rlpr has, which is useful for removing remote jobs as a specific user. This patch doesn't include an update to the man page, but that should be a trivial change. Thanks for your work on rlpr. diff -ru rlpr-2.06/src/rlprm.c rlpr-2.06+/src/rlprm.c --- rlpr-2.06/src/rlprm.c 2000-12-29 12:14:33.000000000 -0500 +++ rlpr-2.06+/src/rlprm.c 2012-04-07 04:46:15.000000000 -0400 @@ -163,6 +163,10 @@ rlpr_rlprm->timeout = strtol(optarg, 0, 0); break; + case 'U': + rlpr_rlprm->user = optarg; + break; + case 'V': msg(R_STDOUT, 0, "version "VERSION" from "__DATE__" "__TIME__ " -- meem@gnu.org"); @@ -179,11 +183,12 @@ static struct option rlprm_opts[] = { { "help", 0, 0, -600 }, { "timeout", 1, 0, -601 }, + { "user", 1, 0, 'U' }, { "version", 0, 0, 'V' }, { 0, 0, 0, 0 } }; -static const char rlprm_opt_list[] = "V"; +static const char rlprm_opt_list[] = "U:V"; struct component comp_rlprm = { "rlprm", rlprm_init, 0, Brian K. White <brian@aljex.com> - Update rlprm man page for -U/--user patch diff -ru rlpr-2.06/man/rlprm.1 rlpr-2.06+/man/rlprm.1 --- rlpr-2.06/man/rlprm.1 2001-01-02 00:38:56.000000000 -0500 +++ rlpr-2.06+/man/rlprm.1 2012-04-07 05:00:06.000000000 -0400 @@ -1,9 +1,9 @@ .\" SCCS "@(#)rlprm.1 1.3 01/01/02 meem" -.TH rlprm 1 "1999/10/28" "rlpr 2.04" "UNIX Reference Manual" +.TH rlprm 1 "2004/09/07" "rlpr 2.06" "UNIX Reference Manual" .SH NAME rlprm \- remove jobs from a remote line printer spooling queue .SH SYNOPSIS -\fBrlprm\fP [-qNV] [\fB-H\fPprinthost] [\fB-P\fPprinter] [\fB-X\fPproxyhost] +\fBrlprm\fP [-qNV] [\fB-H\fPprinthost] [\fB-P\fPprinter] [\fB-X\fPproxyhost] [\fB-U\fPuser] [\fB--debug\fP] [\fB--timeout=\fPseconds] [\fB--port=\fPport] [-] [ \fBjob # ... \fP] [ \fBusername ... \fP] .SH DESCRIPTION .PP @@ -59,6 +59,9 @@ \fBseconds\fP seconds, then \fBrlprm\fP will give up. Use the special value `-1' to wait forever. Default timeout is 3 seconds. .TP +.I \-U, \-\-user=username +Operate as a specific user. +.TP .I \-V, \-\-version Print version and exit. .SS Behavior
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor