Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37853272
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.35.1-alt-runas.patch
Download


--- help2man-1.35.1/help2man.PL.orig	2004-11-25 13:19:54 +0300
+++ help2man-1.35.1/help2man.PL	2005-03-02 23:10:37 +0300
@@ -293,18 +293,18 @@
     for (keys %$hash) { $hash->{$_} =~ s/\n+$/\n/ }
 }
 
+my $date = strftime "%B %Y", localtime;
+(my $program = $ARGV[0]) =~ s!.*/!!;
+my $package = $program;
+my $version;
+
 # Grab help and version info from executable.
 my ($help_text, $version_text) = map {
-    join '', map { s/ +$//; expand $_ } `$ARGV[0] $_ 2>/dev/null`
+    join '', map { s/ +$//; expand $_ } `runas $program $ARGV[0] $_ 2>/dev/null`
 	or kark N_("%s: can't get `%s' info from %s"), $this_program,
 	    $_, $ARGV[0]
 } $help_option, $version_option;
 
-my $date = strftime "%B %Y", localtime;
-(my $program = $ARGV[0]) =~ s!.*/!!;
-my $package = $program;
-my $version;
-
 if ($opt_output)
 {
     unlink $opt_output or kark N_("%s: can't unlink %s (%s)"),
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin