Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37786965
en ru br
ALT Linux repos
S:1.48.5-alt1
5.0: 1.36.4-alt2
4.1: 1.36.4-alt2
4.0: 1.36.4-alt2
3.0: 1.35.1-alt1

Group :: Development/Other
RPM: help2man

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: help2man-1.40.4-alt-runas.patch
Download


--- help2man/help2man.PL
+++ help2man/help2man.PL
@@ -751,11 +751,12 @@ exit;
 sub get_option_value
 {
     my ($prog, $opt) = @_;
+    (my $progname = $prog) =~ s!.*/!!;
     my $stderr = $discard_stderr ? '/dev/null' : '&1';
     my $value = join '',
 	map { s/ +$//; expand $_ }
 	map { dec $_ }
-	`$prog $opt 2>$stderr`;
+	`runas $progname $prog $opt 2>$stderr`;
 
     unless ($value)
     {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin