projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
trigger: reduce indentation level in trigger_event()
[project/procd.git]
/
jail
/
fs.c
diff --git
a/jail/fs.c
b/jail/fs.c
index
7b7b820
..
c4cdcc9
100644
(file)
--- a/
jail/fs.c
+++ b/
jail/fs.c
@@
-86,7
+86,7
@@
static int add_script_interp(const char *path, const char *map, int size)
start++;
}
if (start >= size) {
start++;
}
if (start >= size) {
- ERROR("bad script interp (%s)", path);
+ ERROR("bad script interp (%s)
\n
", path);
return -1;
}
int stop = start + 1;
return -1;
}
int stop = start + 1;
@@
-94,7
+94,7
@@
static int add_script_interp(const char *path, const char *map, int size)
stop++;
}
if (stop >= size || (stop-start) > PATH_MAX) {
stop++;
}
if (stop >= size || (stop-start) > PATH_MAX) {
- ERROR("bad script interp (%s)", path);
+ ERROR("bad script interp (%s)
\n
", path);
return -1;
}
char buf[PATH_MAX];
return -1;
}
char buf[PATH_MAX];
@@
-116,7
+116,7
@@
int add_path_and_deps(const char *path, int readonly, int error, int lib)
if (path[0] == '/') {
if (avl_find(&mounts, path))
return 0;
if (path[0] == '/') {
if (avl_find(&mounts, path))
return 0;
- fd = open(path, O_RDONLY);
+ fd = open(path, O_RDONLY
|O_CLOEXEC
);
if (fd == -1)
return error;
add_mount(path, readonly, error);
if (fd == -1)
return error;
add_mount(path, readonly, error);