diff options
-rw-r--r-- | SECURITY.md | 13 | ||||
-rw-r--r-- | update-rc.d | 11 |
2 files changed, 15 insertions, 9 deletions
diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..7ccecc1 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,13 @@ +How to Report a Potential Vulnerability? +======================================== + +If you would like to report a public issue (for example, one with a released +CVE number), please report it using the +[https://bugzilla.yoctoproject.org/enter_bug.cgi?product=Security Security Bugzilla]. +If you have a patch ready, submit it following the same procedure as any other +patch as described in README.md. + +If you are dealing with a not-yet released or urgent issue, please send a +message to security AT yoctoproject DOT org, including as many details as +possible: the layer or software module affected, the recipe and its version, +and any example code, if available. diff --git a/update-rc.d b/update-rc.d index a7fb7bc..95d1c22 100644 --- a/update-rc.d +++ b/update-rc.d @@ -4,15 +4,8 @@ # # (c) 2003, 2004 Phil Blundell <pb@handhelds.org> # -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. +# SPDX-License-Identifier: GPL-2.0-or-later # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. initd="/etc/init.d" etcd="/etc/rc" @@ -121,7 +114,7 @@ renamelink() # or stop link to start link with a sequence number equal to the difference of 100 minus the original sequence number. if ls ${etcd}${lev}.d/${oldstartstop}*${bn} >/dev/null 2>&1; then oldnn=`basename ${etcd}${lev}.d/${oldstartstop}*${bn}|cut -c2-3` - newnn=$[100-$oldnn] + newnn=$(printf "%02d" $((100-${oldnn#0}))) [ $verbose -eq 1 ] && echo "rename ${etcd}${lev}.d/${oldstartstop}${oldnn}${bn} -> ${etcd}${lev}.d/${newstartstop}${newnn}${bn}" if [ $notreally -eq 0 ];then mv ${etcd}${lev}.d/${oldstartstop}${oldnn}${bn} ${etcd}${lev}.d/${newstartstop}${newnn}${bn} |