Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#74 closed enhancem. (fixed)

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

Reported by: herwigb Owned by: herwigb
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 herwigb 10 years ago.
diff -U patch file for dynconfig.c from Samba 3.0.xx

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by herwigb

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

comment:1 Changed 10 years ago by herwigb

  • Status changed from new to assigned

comment:2 Changed 9 years ago by herwigb

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:3 Changed 9 years ago by herwigb

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