Changeset 853 for releases

Show
Ignore:
Timestamp:
04/25/06 08:10:38 (3 years ago)
Author:
aj
Message:

ct_format_path needs opt_reader as argument, and the resulting
path needs to be used in ct_socket_listen.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • releases/openct-0.6.7/src/ifd/ifdhandler.c

    r850 r853  
    186186        struct sigaction act; 
    187187        char path[PATH_MAX]; 
    188         char file[PATH_MAX]; 
    189  
    190         if (! ct_format_path(path, PATH_MAX, file)) { 
     188 
     189        if (! ct_format_path(path, PATH_MAX, opt_reader)) { 
    191190                ct_error("ct_format_path failed!"); 
    192191                exit(1); 
     
    200199 
    201200        sock = ct_socket_new(0); 
    202         if (ct_socket_listen(sock, opt_reader, 0666) < 0) { 
     201        if (ct_socket_listen(sock, path, 0666) < 0) { 
    203202                ct_error("Failed to create server socket"); 
    204203                exit(1);