Package: rlpr
Version: 2.05-3
Severity: wishlist
Tags: patch

Hello,

The following patch adds a -U/--user option to rlprm, similar to the one
that rlpr already provides.

Thanks,
        Ken

diff -aur rlpr-2.05/src/rlprm.c rlpr-2.05+/src/rlprm.c
--- rlpr-2.05/src/rlprm.c       2006-01-20 18:11:29.000000000 -0500
+++ rlpr-2.05+/src/rlprm.c      2006-01-20 18:09:48.000000000 -0500
@@ -161,6 +161,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__
            " -- [EMAIL PROTECTED]");
@@ -177,11 +181,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,

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=zh_TW.UTF-8, LC_CTYPE=zh_TW.UTF-8 (charmap=UTF-8)

Versions of packages rlpr depends on:
ii  libc6                         2.3.5-12   GNU C Library: Shared libraries an

rlpr recommends no packages.

-- no debconf information

-- 
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
Computers are like air conditioners.  Both stop working if you open windows. 
---
"Unlike you I get Windows shoved down my throat at work."
Ooh, that's a pane in the neck.

Attachment: signature.asc
Description: Digital signature

Reply via email to