![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package sysconfig checked in at Thu Sep 25 23:49:10 CEST 2008. -------- --- sysconfig/sysconfig.changes 2008-09-25 10:37:56.000000000 +0200 +++ /mounts/work_src_done/STABLE/sysconfig/sysconfig.changes 2008-09-25 17:54:38.000000000 +0200 @@ -1,0 +2,8 @@ +Thu Sep 25 17:54:01 CEST 2008 - mt@suse.de + +- Fixed netconfig scripts to avoid seq usage (bnc#285472). +- Set umask explicitly to 0022 in netconfig to avoid that e.g. + /etc/resolv.conf gets created with unusual permissions, when + it didn't existed before. + +------------------------------------------------------------------- New: ---- sysconfig-netconfig-set-umask.diff sysconfig-usr_on_nfs-fixes.285472.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sysconfig.spec ++++++ --- /var/tmp/diff_new_pack.H26041/_old 2008-09-25 23:48:58.000000000 +0200 +++ /var/tmp/diff_new_pack.H26041/_new 2008-09-25 23:48:58.000000000 +0200 @@ -20,7 +20,7 @@ Name: sysconfig Version: 0.71.6 -Release: 1 +Release: 2 Summary: The sysconfig scheme Group: System/Base License: GPL v2 or later @@ -30,6 +30,8 @@ BuildRequires: sysfsutils BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: %name-%version.tar.bz2 +Patch0: sysconfig-usr_on_nfs-fixes.285472.diff +Patch1: sysconfig-netconfig-set-umask.diff %description This package provides the SuSE system configuration scheme. @@ -50,6 +52,8 @@ %prep %setup -n sysconfig-%{version} +%patch0 -p0 +%patch1 -p0 %build autoreconf --force --install @@ -232,6 +236,11 @@ %changelog * Thu Sep 25 2008 mt@suse.de +- Fixed netconfig scripts to avoid seq usage (bnc#285472). +- Set umask explicitly to 0022 in netconfig to avoid that e.g. + /etc/resolv.conf gets created with unusual permissions, when + it didn't existed before. +* Thu Sep 25 2008 mt@suse.de - version 0.71.6 - Fixed /etc/init.d/network script to exit in localfs flow when the networkmanager is active (bnc#425502, bnc#285472). ++++++ sysconfig-netconfig-set-umask.diff ++++++ Index: scripts/netconfig =================================================================== --- scripts/netconfig (Revision 1749) +++ scripts/netconfig (Revision 1750) @@ -333,12 +333,16 @@ exit 1 fi -# FIXME: nfsroot support, don't abort when somebody just calls with "-h" +# Check if we can write in /tmp if ! touch $r/tmp &>/dev/null; then echo "Filesystem read only: Cannot modify anything" >&2 exit 1 fi +# Set usefull default umask +umask 0022 + +# Create state directory if ! mkdir -p "$STATEDIR" ; then echo "Unable to create netconfig state directory '$STATEDIR'" >&2 exit 1 ++++++ sysconfig-usr_on_nfs-fixes.285472.diff ++++++ Index: scripts/functions.netconfig =================================================================== --- scripts/functions.netconfig (.../tags/version-0.71.6) (Revision 1749) +++ scripts/functions.netconfig (.../trunk) (Revision 1749) @@ -172,7 +172,7 @@ test -z "$1" && return 1 test -z "$2" && return 1 - for i in `seq 0 3`; do + for i in {0..3}; do openLock "$1" if [ "$?" = "0" ]; then Index: scripts/convert_for_getconfig =================================================================== --- scripts/convert_for_getconfig (.../tags/version-0.71.6) (Revision 1749) +++ scripts/convert_for_getconfig (.../trunk) (Revision 1749) @@ -376,7 +376,7 @@ # # first, process everything but aliases # -for i in `seq 1 $n`; do +for i in `eval "echo {0..$n}"`; do file=${old_names_array[$i]} # skip aliases Index: scripts/netconfig.d/nis =================================================================== --- scripts/netconfig.d/nis (.../tags/version-0.71.6) (Revision 1749) +++ scripts/netconfig.d/nis (.../trunk) (Revision 1749) @@ -201,7 +201,7 @@ "$NETCONFIG_NIS_STATIC_SERVERS" fi - for i in `seq 0 99`; do + for i in {0..99} ; do nis_dom="NETCONFIG_NIS_STATIC_DOMAIN_$i" nis_srv="NETCONFIG_NIS_STATIC_SERVERS_$i" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de