FreeBSD Bugzilla – Attachment 217378 Details for
Bug 248781
sysutils/yadm: Backport files perms check patch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
yadm backported patch
yadm.diff (text/plain), 912 bytes, created by
Adam Jimerson
on 2020-08-20 13:18:26 UTC
(
hide
)
Description:
yadm backported patch
Filename:
MIME Type:
Creator:
Adam Jimerson
Created:
2020-08-20 13:18:26 UTC
Size:
912 bytes
patch
obsolete
>diff --git a/sysutils/yadm/Makefile b/sysutils/yadm/Makefile >index 9c80cf0d6f2c..6850a95792b2 100644 >--- a/sysutils/yadm/Makefile >+++ b/sysutils/yadm/Makefile >@@ -2,6 +2,7 @@ > > PORTNAME= yadm > PORTVERSION= 2.5.0 >+PORTREVISION= 1 > CATEGORIES= sysutils > > MAINTAINER= vendion@gmail.com >diff --git a/sysutils/yadm/files/patch-yadm b/sysutils/yadm/files/patch-yadm >new file mode 100644 >index 000000000000..784b42060e31 >--- /dev/null >+++ b/sysutils/yadm/files/patch-yadm >@@ -0,0 +1,12 @@ >+--- yadm.orig 2020-08-20 01:05:25 UTC >++++ yadm >+@@ -1944,7 +1944,8 @@ function get_mode { >+ mode=$(stat -c '%a' "$filename" 2>/dev/null) >+ if [ -z "$mode" ] ; then >+ # BSD-style >+- mode=$(stat -f '%A' "$filename" 2>/dev/null) >++ # Using the `cut` command to match the output of GNU stat output >++ mode=$(stat -f '%p' "$filename" | cut -c4-6 2>/dev/null) >+ fi >+ >+ # only accept results if they are octal
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
Flags:
vendion
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 248781
: 217378