FreeBSD Bugzilla – Attachment 166840 Details for
Bug 174729
ports-mgmt/portmaster: should check for script running as before doing certain operations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-portmaster_uid_check
portmaster-patch (text/plain), 342 bytes, created by
w.schwarzenfeld
on 2016-02-10 16:39:54 UTC
(
hide
)
Description:
patch-portmaster_uid_check
Filename:
MIME Type:
Creator:
w.schwarzenfeld
Created:
2016-02-10 16:39:54 UTC
Size:
342 bytes
patch
obsolete
>--- portmaster.orig 2016-02-10 16:35:04 UTC >+++ portmaster >@@ -7,6 +7,12 @@ trap trap_exit INT > > umask 022 > >+if [ "$(id -u)" != "0" ]; then >+ echo "This script must be run as root" 1>&2 >+ exit 1 >+fi >+ >+ > # Initialize crucial values for the parent, and export them for the children > if [ -z "$PM_PARENT_PID" ]; then > PM_PARENT_PID=$$
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 174729
: 166840