Changeset 292


Ignore:
Timestamp:
Jun 30, 2009, 5:32:59 PM (16 years ago)
Author:
Silvan Scherrer
Message:

fix swat, so that it works even when samba is not in x:\samba

Location:
branches/samba-3.0/source/web
Files:
2 edited

Legend:

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

    r172 r292  
    2121#ifdef __OS2__
    2222#include "process.h"
    23 #define SWAT_HELPER(WHAT, WHO)        slprintf(binfile, sizeof(pstring) - 1, "swathelp.cmd"); \
     23#define SWAT_HELPER(WHAT, WHO)        slprintf(binfile, sizeof(pstring) - 1, "%s/swathelp.cmd", getcwd(NULL, _MAX_PATH)); \
    2424                                      int rc; \
    2525                                      rc=spawnl(P_NOWAIT, binfile, binfile, #WHAT, #WHO, NULL);
  • branches/samba-3.0/source/web/swat.c

    r165 r292  
    13841384        load_printers();
    13851385
     1386#ifndef __OS2__
    13861387        cgi_setup(dyn_SWATDIR, !demo_mode);
     1388#else
     1389        fstring path;
     1390        fstrcpy(path, getcwd(NULL, _MAX_PATH));
     1391        fstrcat(path, "/swat");
     1392        cgi_setup(path, !demo_mode);
     1393#endif
    13871394
    13881395        print_header();
Note: See TracChangeset for help on using the changeset viewer.