debian-bugs-dist.lists.debian.org
[Top] [All Lists]

Bug#274245: osdsh: -a: invalid option

Subject: Bug#274245: osdsh: -a: invalid option
From: Thomas Themel
Date: Thu, 30 Sep 2004 16:53:32 +0200
Package: osdsh
Version: 0.7.0-4
Severity: normal
Tags: patch

osdsh doesn't pass the -a option that is documented and implemented (as
--align) to its getopt call, leading to an "invalid argument" when
attempting to use -a. Trivial patch follows.


Index: osdsh-0.7.0/src/osdsh/osdsh.c
===================================================================
--- osdsh-0.7.0/src/osdsh/osdsh.c
+++ osdsh-0.7.0/src/osdsh/osdsh.c   2004-09-30 16:50:38.000000000 +0200
@@ -63,7 +63,7 @@
        {"align", 1, 0, 'a'},
        {"nice", 1, 0, 'n'}
     };
-    while ((c = getopt_long(argc, argv, "hm:f:c:p:d:o:n:", opts, &opt_index)) 
>= 0) {
+    while ((c = getopt_long(argc, argv, "hm:f:c:p:d:o:a:n:", opts, 
&opt_index)) >= 0) {
        switch (c) {
        case 'h':
            usage(0, NULL, NULL);



-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-rc2-mm3
Locale: LANG=C, LC_CTYPE=C

Versions of packages osdsh depends on:
ii  libapm1                     3.2.2-2      Library for interacting with APM d
ii  libc6                       2.3.2.ds1-16 GNU C Library: Shared libraries an
ii  libxosd2                    2.2.11-3     X On-Screen Display library - runt
ii  tk8.4 [wish]                8.4.7-1      Tk toolkit for Tcl and X11, v8.4 -

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#274245: osdsh: -a: invalid option, Thomas Themel <=
Privacy Policy