cleanup and fixes for previous commits

This commit is contained in:
netblue30 2026-07-16 09:35:45 -04:00
parent a3f01f68c7
commit a9b637d54b
3 changed files with 7 additions and 1 deletions

View file

@ -330,7 +330,6 @@ DISTFILES_TEST = \
test/Makefile \
test/apps \
test/capabilities \
test/compile \
test/environment \
test/fcopy \
test/filters \

View file

@ -958,6 +958,7 @@ static void run_builder(int argc, char **argv) {
exit(1);
}
// callback from src/lib/syscall.c
void filter_add_errno(int fd, int syscall, int arg, void *ptrarg, bool native) {
(void) fd;
(void) syscall;
@ -965,6 +966,8 @@ void filter_add_errno(int fd, int syscall, int arg, void *ptrarg, bool native) {
(void) ptrarg;
(void) native;
}
// callback from src/lib/syscall.c
void filter_add_blacklist_override(int fd, int syscall, int arg, void *ptrarg, bool native) {
(void) fd;
(void) syscall;

View file

@ -605,6 +605,7 @@ int is_link(const char *fname) {
return (rv != -1);
}
#if 0
char *realpath_as_user(const char *fname) {
assert(fname);
@ -622,6 +623,7 @@ char *realpath_as_user(const char *fname) {
return rv;
}
#endif
ssize_t readlink_as_user(const char *fname, char *buf, size_t sz) {
assert(fname && buf && sz);
@ -659,6 +661,7 @@ int stat_as_user(const char *fname, struct stat *s) {
return rv;
}
#if 0
int lstat_as_user(const char *fname, struct stat *s) {
assert(fname);
@ -676,6 +679,7 @@ int lstat_as_user(const char *fname, struct stat *s) {
return rv;
}
#endif
// remove all slashes and single dots from the end of a path
// for example /foo/bar///././. -> /foo/bar