summaryrefslogtreecommitdiffstats
path: root/src/fldd/main.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-08-05 07:35:08 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-08-05 07:35:08 -0400
commitc55aafda50df45f42c6de0a25bbc79eb103e0711 (patch)
tree36847e9d88eb02f2fc98beb5ff1dee285ffe4466 /src/fldd/main.c
parentMerge pull request #1435 from SpotComms/fc (diff)
downloadfirejail-c55aafda50df45f42c6de0a25bbc79eb103e0711.tar.gz
firejail-c55aafda50df45f42c6de0a25bbc79eb103e0711.tar.zst
firejail-c55aafda50df45f42c6de0a25bbc79eb103e0711.zip
private-lib: preliminary support for directories in private-lib list
Diffstat (limited to 'src/fldd/main.c')
-rw-r--r--src/fldd/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/fldd/main.c b/src/fldd/main.c
index 8b54242a4..1c6b3dd25 100644
--- a/src/fldd/main.c
+++ b/src/fldd/main.c
@@ -105,7 +105,7 @@ static void copy_libs_for_exe(const char *exe) {
105 f = open(exe, O_RDONLY); 105 f = open(exe, O_RDONLY);
106 if (f < 0) { 106 if (f < 0) {
107 if (!arg_quiet) 107 if (!arg_quiet)
108 fprintf(stderr, "Warning fldd: cannot open %s\n", exe); 108 fprintf(stderr, "Warning fldd: cannot open %s, skipping...\n", exe);
109 return; 109 return;
110 } 110 }
111 111
@@ -202,7 +202,10 @@ static void copy_libs_for_lib(const char *lib) {
202 } 202 }
203 free(fname); 203 free(fname);
204 } 204 }
205 errExit("library not found"); 205
206 // log a warning and continue
207 if (!arg_quiet)
208 fprintf(stderr, "Warning fldd: cannot find %s, skipping...\n", lib);
206} 209}
207 210
208static void usage(void) { 211static void usage(void) {