Hello community, here is the log from the commit of package bash-completion checked in at Tue May 6 01:33:52 CEST 2008. -------- --- bash-completion/bash-completion.changes 2008-04-22 16:31:24.000000000 +0200 +++ /mounts/work_src_done/NOARCH/bash-completion/bash-completion.changes 2008-05-05 16:13:59.000000000 +0200 @@ -1,0 +2,5 @@ +Mon May 5 16:12:47 CEST 2008 - mkoenig@suse.de + +- fix mount completion for root [bnc#386459] + +------------------------------------------------------------------- New: ---- bash-completion-mount_dir_fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bash-completion.spec ++++++ --- /var/tmp/diff_new_pack.Jl7995/_old 2008-05-06 01:33:14.000000000 +0200 +++ /var/tmp/diff_new_pack.Jl7995/_new 2008-05-06 01:33:14.000000000 +0200 @@ -17,7 +17,7 @@ Requires: bash AutoReqProv: on Version: 20060301 -Release: 72 +Release: 76 Summary: Programmable Completion for Bash Url: http://www.caliban.org/bash/index.shtml#completion Source0: http://www.caliban.org/files/bash/bash-completion-%version.tar.bz2 @@ -26,6 +26,7 @@ Patch0: bash_completion-rpm_install_complete.patch Patch1: bash-completion-bzip2_fix.patch Patch2: bash-completion-svn_filenames.patch +Patch3: bash-completion-mount_dir_fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -44,6 +45,7 @@ %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build # empty @@ -84,6 +86,8 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon May 05 2008 mkoenig@suse.de +- fix mount completion for root [bnc#386459] * Tue Apr 22 2008 mkoenig@suse.de - use -o filenames for svn completion [bnc#382280] - add empty %%build section ++++++ bash-completion-mount_dir_fix.patch ++++++ Index: bash_completion/bash_completion =================================================================== --- bash_completion.orig/bash_completion +++ bash_completion/bash_completion @@ -679,8 +679,12 @@ _mount() | grep "^$cur" ) ) else # probably Linux - COMPREPLY=( $( awk '! /^[ \t]*#/ {if ($2 ~ /\//) print $2}' \ + if [ $EUID -eq 0 ]; then + _filedir + else + COMPREPLY=( $( awk '! /^[ \t]*#/ {if ($2 ~ /\//) print $2}' \ /etc/fstab | grep "^$cur" ) ) + fi fi return 0 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org