Bug 2923

Summary: /sbin/mount.smb is broken
Product: [Retired] Red Hat Linux Reporter: Damien, Miller <dmiller>
Component: sambaAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-19 14:24:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Damien, Miller 1999-05-19 05:30:43 UTC
mount.smb passes smbmount it arguments in the wrong order.
This trivial patch fixes that:

--- mount.smb-orig	Wed May 19 15:24:46 1999
+++ mount.smb	Wed May 19 15:15:21 1999
@@ -39,7 +39,7 @@
 done

 if [ -n "$PASSWD" ]; then
-      exec smbmount "$1" $USER $PASSWD -c "$COMMAND"
+      exec smbmount "$1" $PASSWD $USER -c "$COMMAND"
 else
       exec smbmount "$1" -N $USER -c "$COMMAND"
 fi

------------------------------------

Comment 1 Bill Nottingham 1999-05-19 14:24:59 UTC
fixed in samba-2.0.4a-1