/[path-sandbox]/trunk/libsbutil/get_sandbox_lib.c
Gentoo

Diff of /trunk/libsbutil/get_sandbox_lib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 355 Revision 356
33#include "sbutil.h" 33#include "sbutil.h"
34 34
35void get_sandbox_lib(char *path) 35void 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

Legend:
Removed from v.355  
changed lines
  Added in v.356

  ViewVC Help
Powered by ViewVC 1.1.20