Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 706781 Details for
Bug 827854
SELinux prevents BackupPC from reading /etc/shadow
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch for BackuPC to call getpwnam in scalar instead of list context
getpwnam-scalar.patch (text/plain), 1.00 KB, created by
Joel Uckelman
on 2013-03-07 20:14:36 UTC
(
hide
)
Description:
Patch for BackuPC to call getpwnam in scalar instead of list context
Filename:
MIME Type:
Creator:
Joel Uckelman
Created:
2013-03-07 20:14:36 UTC
Size:
1.00 KB
patch
obsolete
>--- Lib.pm 2013-03-07 21:08:28.094540820 +0100 >+++ Lib.pm 2013-03-07 21:08:51.773501648 +0100 >@@ -160,7 +160,7 @@ > # > if ( !$noUserCheck > && $bpc->{Conf}{BackupPCUserVerify} >- && $> != (my $uid = (getpwnam($bpc->{Conf}{BackupPCUser}))[2]) ) { >+ && $> != (my $uid = getpwnam($bpc->{Conf}{BackupPCUser})) ) { > print(STDERR "$0: Wrong user: my userid is $>, instead of $uid" > . " ($bpc->{Conf}{BackupPCUser})\n"); > print(STDERR "Please su $bpc->{Conf}{BackupPCUser} first\n"); >--- CGI/Lib.pm 2013-03-07 21:09:15.325463267 +0100 >+++ CGI/Lib.pm 2013-03-07 21:09:32.181731806 +0100 >@@ -144,7 +144,7 @@ > # Verify we are running as the correct user > # > if ( $Conf{BackupPCUserVerify} >- && $> != (my $uid = (getpwnam($Conf{BackupPCUser}))[2]) ) { >+ && $> != (my $uid = getpwnam($Conf{BackupPCUser})) ) { > ErrorExit(eval("qq{$Lang->{Wrong_user__my_userid_is___}}"), <<EOF); > This script needs to run as the user specified in \$Conf{BackupPCUser}, > which is set to $Conf{BackupPCUser}.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 827854
: 706781