Bug 2557 - samba for on sparc can only see first line in /etc/smbpasswd file
samba for on sparc can only see first line in /etc/smbpasswd file
Product: Red Hat Linux
Classification: Retired
Component: samba (Show other bugs)
sparc Linux
medium Severity high
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
Depends On:
  Show dependency treegraph
Reported: 1999-05-05 03:06 EDT by pfeif
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-06-17 11:18:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description pfeif 1999-05-05 03:06:01 EDT
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 16:56:59 EDT
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-17 23:54:59 EDT
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 09:41:59 EDT
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

------- Email Received From  "David S. Miller" <davem@redhat.com> 05/18/99 13:13 -------
Comment 4 Bill Nottingham 1999-06-17 11:18:59 EDT
Fixed in samba-2.0.4b-5, by a really ugly hack.
Will be available in next Raw Hide.

Note You need to log in before you can comment on or make changes to this bug.