Ignore:
Timestamp:
Jun 12, 2009, 6:40:11 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

pidfilename fix (by diver) in 3.3 branch

File:
1 edited

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");
Note: See TracChangeset for help on using the changeset viewer.