/[path-sandbox]/trunk/sandbox_futils.c
Gentoo

Diff of /trunk/sandbox_futils.c

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

Revision 2 Revision 13
26 26
27#include <grp.h> 27#include <grp.h>
28#include <pwd.h> 28#include <pwd.h>
29 29
30#include "sandbox.h" 30#include "sandbox.h"
31#include "config.h"
31 32
32/* BEGIN Prototypes */ 33/* BEGIN Prototypes */
33int file_security_check(char *filename); 34int file_security_check(char *filename);
34/* END Prototypes */ 35/* END Prototypes */
35 36
89char * 90char *
90get_sandbox_rc(char *sb_path) 91get_sandbox_rc(char *sb_path)
91{ 92{
92 char path[255]; 93 char path[255];
93 94
94 snprintf(path, sizeof(path), "/usr/lib/portage/lib/%s", BASHRC_NAME); 95 snprintf(path, sizeof(path), "%s/%s", SANDBOX_BASHRC_PATH, BASHRC_NAME);
95 if (file_exist(path, 0) <= 0) { 96 if (file_exist(path, 0) <= 0) {
96 snprintf(path, sizeof(path), "%s%s", sb_path, BASHRC_NAME); 97 snprintf(path, sizeof(path), "%s%s", sb_path, BASHRC_NAME);
97 } 98 }
98 return (strdup(path)); 99 return (strdup(path));
99} 100}

Legend:
Removed from v.2  
changed lines
  Added in v.13

  ViewVC Help
Powered by ViewVC 1.1.20