Bug 1904 - sessionsetup.C reports server OS as UNIX
Summary: sessionsetup.C reports server OS as UNIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.7
Hardware: Alpha OpenVMS
: P3 enhancement
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
Depends on:
Reported: 2004-10-10 18:13 UTC by John Malmberg
Modified: 2019-02-24 05:51 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description John Malmberg 2004-10-10 18:13:04 UTC
Sessionsetup.c is reporting the server OS as "Unix".

Can this be changed to default to "Unix", but allow the config.h file to override?

In the 2.2.x stream and earlier this is in reply.c, and on those streams the VMS
port of SAMBA has been reporting "OpenVMS" through a conditional compile.
Comment 1 Tim Potter 2004-10-10 18:31:38 UTC
Do people other than smbclient users see or worry about this string?  

I don't think this should be a config.h or smb.conf parameter though.  If you
write a patch to allow the string to be set using include/local.h I will most
likely apply it.
Comment 2 John Malmberg 2004-10-10 19:32:50 UTC
I am not sure if the native Microsoft tools can display this information.  I
thought that it showed up on some of them, but it has been 3 years since I have
used them in that capacity.

Every SAMBA-VMS port that I can find has had this hack in one way or another.

I do not know why it was done in the first place. :-)

Currently the VMS ports use the SAMBA supplied local.h file with no changes.  Is
this file generated/modified by something in the UNIX build?

Right now I am getting the J.Y.C. VMS port of 2.2.8 up to 2.2.12, and using this
to find what VMS specific changes have been made, and what are likely still
going to be needed for the 3.x and 4.x streams after VMS specific VFS modules
are written.
Comment 3 Tim Potter 2004-10-10 21:12:23 UTC
local.h is for things that are constant 99% of the time but that you might like
to change for some specific reason.  It's not touched by any of the build system
so it needs to be tweaked by hand.

Personally, I haven't seen any tools that display any of the protocol
information at that level.