[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#337703: xvfb: typo breaks xvfb-run's --error-file argument



Package: xvfb
Version: 6.8.2.dfsg.1-10
Severity: minor
Tags: patch

There's a missing comma in the options-parsing code in xvfb-run that causes
an error when you provide the --error-file argument. The '-e' short form
works fine.

24:warner@luther% xvfb-run --error-file /tmp/errs sleep 1   
xvfb-run: error: internal error; getopt permitted "--error-file:auth-file"
   unexpectedly
25:warner@luther% xvfb-run -e /tmp/errs sleep 1
26:warner@luther% 

The patch is as follows:

--- xvfb-run.orig	2005-11-05 12:47:25.000000000 -0800
+++ xvfb-run	2005-11-05 12:47:36.000000000 -0800
@@ -83,7 +83,7 @@
 
 # Parse the command line.
 ARGS=$(getopt --options +ae:f:hn:lp:s:w: \
-       --long auto-servernum,error-file:auth-file:,help,server-num:,listen-tcp,xauth-protocol:,server-args:,wait: \
+       --long auto-servernum,error-file:,auth-file:,help,server-num:,listen-tcp,xauth-protocol:,server-args:,wait: \
        --name "$PROGNAME" -- "$@")
 GETOPT_STATUS=$?


cheers,
 -Brian
 

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages xvfb depends on:
ii  libc6                    2.3.5-7         GNU C Library: Shared libraries an
ii  libfreetype6             2.1.10-1        FreeType 2 font engine, shared lib
ii  libxau6                  6.8.2.dfsg.1-10 X Authentication library
ii  libxdmcp6                6.8.2.dfsg.1-10 X Display Manager Control Protocol
ii  zlib1g                   1:1.2.3-6       compression library - runtime

xvfb recommends no packages.

-- no debconf information



Reply to: