Skip to content

Commit 54b8bdc

Browse files
authored
Merge pull request #58 from pfeifferj/feat/use-new-sandbox-fields-from-pacmanconf
feat: use new sandbox fields from pacmanconf for git feature
2 parents adcd470 + 03e0538 commit 54b8bdc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

alpm-utils/src/conf.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ pub fn configure_alpm(alpm: &mut Alpm, conf: &Config) -> alpm::Result<()> {
5959
alpm.set_parallel_downloads(conf.parallel_downloads as u32);
6060
#[cfg(feature = "git")]
6161
{
62-
alpm.set_disable_sandbox_filesystem(conf.disable_sandbox);
63-
alpm.set_disable_sandbox_syscalls(conf.disable_sandbox);
62+
alpm.set_disable_sandbox_filesystem(
63+
conf.disable_sandbox_filesystem || conf.disable_sandbox,
64+
);
65+
alpm.set_disable_sandbox_syscalls(conf.disable_sandbox_syscalls || conf.disable_sandbox);
6466
}
6567
#[cfg(not(feature = "git"))]
6668
alpm.set_disable_sandbox(conf.disable_sandbox);

0 commit comments

Comments
 (0)