Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 77503 Details for
Bug 117124
net-dns/ddclient-3.6.7 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Permissions patch for 3.6.7
ddclient-perms.patch (text/plain), 1.66 KB, created by
michael@smith-li.com
on 2006-01-18 21:45:58 UTC
(
hide
)
Description:
Permissions patch for 3.6.7
Filename:
MIME Type:
Creator:
michael@smith-li.com
Created:
2006-01-18 21:45:58 UTC
Size:
1.66 KB
patch
obsolete
>--- ddclient.bak 2006-01-18 18:02:53.000000000 -0500 >+++ ddclient 2006-01-18 18:56:34.000000000 -0500 >@@ -776,20 +776,31 @@ > my $content = ''; > > local *FD; >- if (! open(FD, "< $file")) { >- # fatal("Cannot open file '%s'. ($!)", $file); >- warning("Cannot open file '%s'. ($!)", $file); >- } >+ if (! open(FD, "< $file")) { fatal("Cannot open file '%s'. ($!)", $file); } > # Check for only owner has any access to config file >- my ($dev, $ino, $mode, @statrest) = stat(FD); >- if ($mode & 077) { >- if (-f FD && (chmod 0600, $file)) { >- warning("file $file must be accessible only by its owner (fixed)."); >- } else { >- # fatal("file $file must be accessible only by its owner."); >- warning("file $file must be accessible only by its owner."); >- } >- } >+ my $badperm = 0; >+ my @stats = stat(FD); >+ my $perms = $stats[2] & 07777; >+ my $oct_perms = sprintf "%lo", $perms; >+ my $uid = $stats[4]; >+ my $uname = getpwuid($uid); >+ my $gid = $stats[5]; >+ my $grnam = getgrgid($gid); >+ if ($uid != getpwnam("root")) { >+ $badperm = 1; >+ warning("Root should own $file, but $uname owns it!"); >+ } >+ if ($gid != getgrnam("ddclient")) { >+ $badperm = 1; >+ warning("Group ddclient should own $file, but group $grnam owns it!"); >+ } >+ if ($perms != 0640) { >+ $badperm = 1; >+ warning("$file has permissions $oct_perms, but should have permissions 0640."); >+ } >+# if ($badperm) { >+# fatal("Please correct the permissions on $file and restart ddclient. Exiting.") >+# } > > local $lineno = 0; > my $continuation = '';
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 117124
:
77501
|
77502
| 77503 |
78780
|
78781
|
78782
|
84063
|
84068
|
84237
|
84238
|
84416
|
84417
|
84418
|
84435
|
84436
|
84466
|
84467
|
84511
|
88423
|
88568
|
88577
|
89240
|
89242
|
93921
|
95055
|
95056