Changeset 363


Ignore:
Timestamp:
Jan 7, 2010, 4:12:19 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Fix for hardcoded \lib directory in 3.0.x

Location:
branches/samba-3.0/source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/dynconfig.c

    r169 r363  
    139139 * @sa lib_path() to get the path to a file inside the LIBDIR.
    140140 **/
    141 pstring dyn_LIBDIR = LIBDIR;
     141// we try to set the libdir based on the current running process
     142const char* getlibdir()
     143{
     144        static pstring buffer = "";
     145        if (!*buffer)
     146        {
     147
     148                if (getenv("SMB_EXE") == NULL)
     149                {
     150                        snprintf(buffer, 260, "%s", LIBDIR);
     151                } else {
     152                        snprintf(buffer, 260, "%s/lib", getenv("SMB_EXE"));
     153                }
     154        }
     155
     156        return buffer;
     157}
     158
    142159fstring dyn_SHLIBEXT = SHLIBEXT;
    143160
  • branches/samba-3.0/source/include/dynconfig.h

    r1 r363  
    3737#define dyn_SMB_PASSWD_FILE (getsmbpasswd())
    3838#define dyn_LMHOSTSFILE (getlmhosts())
     39#define dyn_LIBDIR (getlibdir())
    3940#else
    4041extern pstring dyn_CONFIGFILE;
     
    4445extern pstring dyn_SMB_PASSWD_FILE;
    4546extern pstring dyn_PRIVATE_DIR;
     47extern pstring dyn_LIBDIR;
    4648#endif /* __OS2__ */
    4749extern fstring dyn_SHLIBEXT;
    48 extern pstring dyn_LIBDIR;
    4950
  • branches/samba-3.0/source/include/version.h

    r355 r363  
    44#define SAMBA_VERSION_RELEASE 37
    55#define SAMBA_VERSION_OFFICIAL_STRING "3.0.37"
    6 #define SAMBA_VERSION_VENDOR_SUFFIX "eCS 1.0.3"
    7 #define SAMBA_VERSION_VENDOR_PATCH 354
     6#define SAMBA_VERSION_VENDOR_SUFFIX "eCS 1.0.x-EA-TEST-DYN"
     7#define SAMBA_VERSION_VENDOR_PATCH 355
    88#define SAMBA_VERSION_STRING samba_version_string()
  • branches/samba-3.0/source/lib/os2ea.c

    r352 r363  
    382382                if (pfea->oNextEntryOffset > 0x10000)
    383383                {
    384                         DEBUG(0, ("Broken Extended Attributes detected for: %s:%d\n", path ? path : "null", file));
     384                        // DEBUG(0, ("Broken Extended Attributes detected for: %s:%d\n", path ? path : "null", file));
     385                        DEBUG(0, ("Broken Extended Attributes detected for: %s:%d, Last EA:%s\n", path ? path : "null", file, pfea->szName));
    385386                        break;
    386387                }
Note: See TracChangeset for help on using the changeset viewer.