Changeset 5832:f0b38d5ea016 in roaraudio for libroar/vio_cmd.c


Ignore:
Timestamp:
01/06/13 16:15:56 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added roar_libroar_get_path_static() and make use of it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_cmd.c

    r5823 r5832  
    185185     ROAR_U_EXIT(1); 
    186186 
    187     execlp("/bin/sh", "/bin/sh", "-c", child->cmd, (_LIBROAR_GOOD_CAST char*)NULL); 
     187    execlp(roar_libroar_get_path_static("bin-sh"), roar_libroar_get_path_static("bin-sh"), "-c", child->cmd, (_LIBROAR_GOOD_CAST char*)NULL); 
    188188 
    189189    ROAR_U_EXIT(1); 
     
    644644   return -1; 
    645645 
    646   snprintf(command, 1024, "%s --batch --no-verbose --quiet --passphrase-repeat 0 --passphrase-fd %i %s %s", ROAR_HAVE_BIN_GPG, pwpipe[0], para, opts); 
     646  snprintf(command, 1024, "%s --batch --no-verbose --quiet --passphrase-repeat 0 --passphrase-fd %i %s %s", roar_libroar_get_path_static("bin-gpg"), pwpipe[0], para, opts); 
    647647 
    648648  write(pwpipe[1], pw, strlen(pw)); 
     
    650650  close(pwpipe[1]); 
    651651 } else { 
    652   snprintf(command, 1024, "%s --no-verbose --quiet %s %s", ROAR_HAVE_BIN_GPG, para, opts); 
     652  snprintf(command, 1024, "%s --no-verbose --quiet %s %s", roar_libroar_get_path_static("bin-gpg"), para, opts); 
    653653 } 
    654654 
Note: See TracChangeset for help on using the changeset viewer.