… | |
… | |
33 | #include "sbutil.h" |
33 | #include "sbutil.h" |
34 | |
34 | |
35 | void get_sandbox_lib(char *path) |
35 | void get_sandbox_lib(char *path) |
36 | { |
36 | { |
37 | save_errno(); |
37 | save_errno(); |
38 | #ifdef SB_HAVE_MULTILIB |
|
|
39 | snprintf(path, SB_PATH_MAX, "%s", LIB_NAME); |
|
|
40 | #else |
|
|
41 | snprintf(path, SB_PATH_MAX, "%s/%s", LIBSANDBOX_PATH, LIB_NAME); |
38 | snprintf(path, SB_PATH_MAX, "%s/%s", LIBSANDBOX_PATH, LIB_NAME); |
42 | if (!rc_file_exists(path)) { |
39 | if (!rc_file_exists(path)) { |
43 | snprintf(path, SB_PATH_MAX, "%s", LIB_NAME); |
40 | snprintf(path, SB_PATH_MAX, "%s", LIB_NAME); |
44 | } |
41 | } |
45 | #endif |
|
|
46 | restore_errno(); |
42 | restore_errno(); |
47 | } |
43 | } |
48 | |
|
|