Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#74 closed enhancem. (fixed)

Set UNIXROOT and TMPDIR to suitable defaults in case they are undefined

Reported by: Herwig Bauernfeind Owned by: Herwig Bauernfeind
Priority: minor Milestone: Samba Server for eCS (OS/2) 1.0.1
Component: Samba Server Version: 3.0.34
Keywords: UNIXROOT TMPDIR Cc:

Description

Samba binaries require the environment variables UNIXROOT and TMPDIR to be set properly in order to run. If either of them is missing some functionality simply will not work. What is more, a missing TMDIR makes some binaries simply crash without a proper error message.

This patch sets UNIXROOT in case it is not defined to the parent directory of %ETC% (usually x:\MPTN, where x: is the bootdrive). This has the advantage to eliminate the hassle that %UNIXROOT%\etc is not necessarily the same as %ETC% (which is hardly understandable anyway for average users).

The TMPDIR variable is normally found on newer eCS systems, but missing on older OS/2 systems (and possibly early eCS systems, not checked). When this patch is applied, the value of the %TEMP% variable (which is normally defined everywhere) is also used for %TMPDIR%. If is is also missing %TMPDIR% is set to x:\OS2\SYSTEM (where x: is the drive where %ETC% points to, i.e. normally the bootdrive), where several OS/2 components store temporary files.

Providing suitable defaults for both variables should make Samba installations easier, especially for average users.

Note: This patch cannot not be applied to Samba 3.2 and 3.3 as dynconfig.c only provides macros there.

Attachments (1)

dynconfig.zip (556 bytes ) - added by Herwig Bauernfeind 16 years ago.
diff -U patch file for dynconfig.c from Samba 3.0.xx

Download all attachments as: .zip

Change History (4)

by Herwig Bauernfeind, 16 years ago

Attachment: dynconfig.zip added

diff -U patch file for dynconfig.c from Samba 3.0.xx

comment:1 by Herwig Bauernfeind, 16 years ago

Status: newassigned

comment:2 by Herwig Bauernfeind, 16 years ago

Resolution: fixed
Status: assignedclosed

Changeset http://svn.netlabs.org/samba/changeset/169 fixes this issue.

comment:3 by Herwig Bauernfeind, 15 years ago

Version: 3.0.34
Note: See TracTickets for help on using tickets.