Bug#265468: smbmount: option noauto causes options iocharset+codepage to be ignored

2005-04-20 Thread Maximiliano Pin
It seems this won't be fixed soon:

http://lists.samba.org/archive/samba/2002-August/049020.html

(the problem was already known by samba 3 years ago!)

I have a quick and dirty fix to this:

cd /usr/bin
Move smbmount to smbmount.real

Edit smbmount:

8<-
#!/bin/sh

params=`echo $* | sed 's/noauto,//'`
exec smbmount.real $params
8<-

It works, but I don't know what will happen when smbfs is updated.


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



Bug#265468: smbmount: option noauto causes options iocharset+codepage to be ignored

2006-03-14 Thread Roland . Baudin
Thanks for the tip!
The same problem arises with the 'user' option, but there is a little
subtitility because it seems that the 'noexec,nosuid,nodev' options are
then automatically added by the calling program. Thus in this case the
smbmount shell should be modified like this :

-
#!/bin/sh

params=`echo $* | sed 's/noauto,//'`
params=`echo $params | sed 's/noexec,nosuid,nodev,user,//'`

exec smbmount.orig $params


and this corresponds to a line in /etc/fstab like this :

//server/mnt1  /mnt1  smbfs
credentials=/etc/cred,uid=1000,gid=1000,user,noauto,iocharset=iso8859-1,codepage=cp850
  0 0






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