Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 605172 Details for
Bug 646546
net-misc/minissdpd: QA issues with init.d file
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
unified diff for files/minissdpd.initd-r2 to do the bitwise check in posix
minissdpd_initd.diff (text/plain), 501 bytes, created by
Chris Slycord
on 2020-01-27 13:10:32 UTC
(
hide
)
Description:
unified diff for files/minissdpd.initd-r2 to do the bitwise check in posix
Filename:
MIME Type:
Creator:
Chris Slycord
Created:
2020-01-27 13:10:32 UTC
Size:
501 bytes
patch
obsolete
>--- /var/db/repos/gentoo/net-misc/minissdpd/files/minissdpd.initd-r2 2016-05-18 15:38:34.000000000 +0900 >+++ minissdpd.initd-r2 2020-01-27 21:54:23.000000000 +0900 >@@ -11,9 +11,9 @@ > interfaceup() { > # interface exists? > if [ ! -f /sys/class/net/$1/flags ]; then return 1; fi >- let "IFUP = `cat /sys/class/net/$1/flags` & 1" >+ IFUP="$(($(cat /sys/class/net/$1/flags) & 1))" > # interface has UP flag? >- if [ $IFUP -eq 0 ]; then return 1; fi >+ if [ "$IFUP" -eq 0 ]; then return 1; fi > return 0 > } >
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 646546
: 605172