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

Bug#739258: has_option ignores first line of file



Package: x11-common
Version: 1:7.7+6
Severity: normal
File: /etc/X11/Xsession.d/20x11-common_process-args

There is a straightforward bug in Xsession.options parsing:
if the first line is an option, it's ignored.

   echo use-session-dbus >/etc/X11/Xsession.options

will not dbus-launch, but

   printf '\nuse-session-dbus\n' >/etc/X11/Xsession.options

will.

I don't really want to think about parsing in raw sh right now, so I'm
just going to add a blank line at the top of my file and leave the
problem with you guys.  Good luck!


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages x11-common depends on:
ii  debconf [debconf-2.0]  1.5.52
ii  lsb-base               4.1+Debian12

x11-common recommends no packages.

x11-common suggests no packages.

-- debconf information:
  x11-common/xwrapper/allowed_users: Console Users Only
  x11-common/xwrapper/actual_allowed_users: console


Reply to: