Changeset 265

Show
Ignore:
Timestamp:
06/12/09 18:40:11 (9 months ago)
Author:
herwigb
Message:

pidfilename fix (by diver) in 3.3 branch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/lib/pidfile.c

    r206 r265  
    9696        /* Add a suffix to the program name if this is a process with a 
    9797         * none default configuration file name. */ 
     98 
     99        /* On OS/2, CONFIGFILE will always be different to dyn_CONFIGFILE  
     100           as dyn_CONFIGFILE dynamically looks up the system ETC directory */     
     101#ifndef __OS2__ 
    98102        if (strcmp( CONFIGFILE, get_dyn_CONFIGFILE()) == 0) { 
    99103                name = SMB_STRDUP(program_name); 
     
    112116                } 
    113117        } 
    114  
     118#else 
     119        name = SMB_STRDUP(program_name); 
     120#endif 
    115121        if (asprintf(&pidFile, "%s/%s.pid", lp_piddir(), name) == -1) { 
    116122                smb_panic("asprintf failed");