Package: autofs
Version: 4.1.3+4.1.4beta2-2
Followup-For: Bug #295723

Sorry for double posting, but I figured out what causes the problem.
Both auto.net & auto.smb have bashisms (lines 26 & 10 respectively -
{arg1,arg2} ) & I use dash as /bin/sh.

Possible solutions:
- s/sh/bash , however AFAIK Debian's Policy says that shell scripts
  should be POSIX-compliant. 
- replace the "for" loops in both scripts with :
  
  (auto.smb)
  test -x /usr/bin/smbclient || SMBCLIENT="$(which smbclient)"          
  
  (auto.net)
  test -x /sbin/showmount || SMNT="$(which showmount)"
  if [ ! "$SMNT" ]; then 
        test -x /sbin/kshowmount || SMNT="$(which kshowmount)"
  fi    

btw. If you choose to make these scripts POSIX-compliant I could help
POSIXify the /etc/init.d/autofs script if you want.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-as3
Locale: LANG=C, LC_CTYPE=el_GR (charmap=ISO-8859-7)

Versions of packages autofs depends on:
ii  debconf                     1.4.45       Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- debconf information:
* autofs/upgrade-from-broken-version:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to