summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/printer.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index 17f22c226..524a8ae0e 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -281,7 +281,7 @@ sub read_printer_db(;$) {
%thedb and return;
my %available_devices; #- keep only available devices in our database.
- local *AVAIL; open AVAIL, "$prefix/usr/bin/gs --help |";
+ local *AVAIL; open AVAIL, "chroot ". ($prefix || '/') ." /usr/bin/gs --help |";
foreach (<AVAIL>) {
if (/^Available devices:/ ... /^\S/) {
@available_devices{split /\s+/, $_} = () if /^\s+/;