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

Bug#458345: use run-parts --test



Package: x11-common
Version: 1:7.3+8
Severity: wishlist
File: /etc/X11/Xsession
Tags: patch

Untested patch.
*** /etc/X11/Xsession	2007-02-20 17:07:09.000000000 +0800
--- /tmp/Xsession	2007-12-30 23:09:25.105523129 +0800
***************
*** 47,70 ****
             "<debian-x@lists.debian.org>."
  }
  
- run_parts () {
-   # until run-parts --noexec is implemented
-   if [ -z "$1" ]; then
-     internal_errormsg "run_parts() called without an argument."
-   fi
-   if [ ! -d "$1" ]; then
-     internal_errormsg "run_parts() called, but \"$1\" does not exist or is" \
-                       "not a directory."
-   fi
-   for F in $(/bin/ls $1); do
-     if expr "$F" : '[[:alnum:]_-]\+$' > /dev/null 2>&1; then
-       if [ -f "$1/$F" ]; then
-         echo "$1/$F"
-       fi
-     fi
-   done
- }
- 
  # initialize variables for use by all session scripts
  
  OPTIONFILE=/etc/X11/Xsession.options
--- 47,52 ----
***************
*** 116,122 ****
  # instead of executing so that the variables and functions defined above
  # are available to the scripts, and so that they can pass variables to each
  # other
! SESSIONFILES=$(run_parts $SYSSESSIONDIR)
  if [ -n "$SESSIONFILES" ]; then
    set +e
    for SESSIONFILE in $SESSIONFILES; do
--- 98,104 ----
  # instead of executing so that the variables and functions defined above
  # are available to the scripts, and so that they can pass variables to each
  # other
! SESSIONFILES=$(run_parts --test $SYSSESSIONDIR)
  if [ -n "$SESSIONFILES" ]; then
    set +e
    for SESSIONFILE in $SESSIONFILES; do



Reply to: