diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index a5edec714..8a81b6e8e 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -465,13 +465,11 @@ void fs_blacklist(void) { | |||
465 | // Process noblacklist command | 465 | // Process noblacklist command |
466 | if (strncmp(entry->data, "noblacklist ", 12) == 0) { | 466 | if (strncmp(entry->data, "noblacklist ", 12) == 0) { |
467 | if (noblacklist_c >= noblacklist_m) { | 467 | if (noblacklist_c >= noblacklist_m) { |
468 | noblacklist_m *= 2; | 468 | noblacklist_m *= 2; |
469 | noblacklist = realloc(noblacklist, sizeof(*noblacklist) * noblacklist_m); | 469 | noblacklist = realloc(noblacklist, sizeof(*noblacklist) * noblacklist_m); |
470 | if (noblacklist == NULL) | 470 | if (noblacklist == NULL) |
471 | errExit("failed increasing memory for noblacklist entries"); | 471 | errExit("failed increasing memory for noblacklist entries");} |
472 | } | 472 | noblacklist[noblacklist_c++] = expand_home(entry->data + 12, homedir); |
473 | else | ||
474 | noblacklist[noblacklist_c++] = expand_home(entry->data + 12, homedir); | ||
475 | entry = entry->next; | 473 | entry = entry->next; |
476 | continue; | 474 | continue; |
477 | } | 475 | } |