Bug 2557

Summary: samba for on sparc can only see first line in /etc/smbpasswd file
Product: [Retired] Red Hat Linux Reporter: pfeif
Component: sambaAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: sparc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-06-17 15:18:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description pfeif 1999-05-05 07:06:01 UTC
Samba-2.0.3 from redhat-sparc 6.0 (on an Ultra-10)  can only
see one line in /etc/smbpasswd (properly created with
makesmbpasswd.sh or via smbadduser). As soon as more than
one line is present,it fails on all entrys ("Cannot find
xxxx in smbpasswd file" or something like that is written in
the logs). This is when trying with "smbpasswd", "smbclient"
or when connecting from a windows client. More info
available upon request.

Comment 1 Bill Nottingham 1999-05-10 20:56:59 UTC
There seems to be some 64-bit collision issues on the UltraSparc
(it's using 64-bit types when 32 seems to be expected.) I'll
enter something in the samba bug tracker and get back to you.

Comment 2 David Miller 1999-05-18 03:54:59 UTC
I found the bug, it is in the kernel and easily fixable.

All of SMB_IOC_* ioctl()s are not being translated from
the userspace 32-bit types into the kernel 64-bit types,
this means changes to arch/sparc64/kernel/ioctl32.c in
the kernel.

I think it can be removed from the Samba bug tracker,
because their code is fine, notting?

Comment 3 Bill Nottingham 1999-05-18 13:41:59 UTC
sure, but the problem here was in using
ftello64 and the like to get file offsets
and then doing some various pointer math
on it - would that have caused these bugs
too?

------- Email Received From  "David S. Miller" <davem> 05/18/99 13:13 -------

Comment 4 Bill Nottingham 1999-06-17 15:18:59 UTC
Fixed in samba-2.0.4b-5, by a really ugly hack.
Will be available in next Raw Hide.