From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 11 Aug 2007 16:27:48 +0400 From: "Dmitry V. Levin" To: ALT Linux Sisyphus discussion list Message-ID: <20070811122747.GL22108@basalt.office.altlinux.org> Mail-Followup-To: ALT Linux Sisyphus discussion list References: <46BD697E.5060201@rambler.ru> <20070811095907.GA22108@basalt.office.altlinux.org> <46BD96C6.7040706@rambler.ru> <20070811111036.GK22108@basalt.office.altlinux.org> <46BD9B7D.7050207@rambler.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lbQeYSs6J2ITmUo7" Content-Disposition: inline In-Reply-To: <46BD9B7D.7050207@rambler.ru> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [sisyphus] =?koi8-r?b?68HLINLB2tLF28nU2CDSwcLP1NUgc3Vkbz8=?= X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2007 12:27:48 -0000 Archived-At: List-Archive: List-Post: --lbQeYSs6J2ITmUo7 Content-Type: multipart/mixed; boundary="2OzUYMsT4j3Kc+NU" Content-Disposition: inline --2OzUYMsT4j3Kc+NU Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 11, 2007 at 03:20:29PM +0400, Dmitry A. Kharitonov wrote: > Dmitry V. Levin =D0=C9=DB=C5=D4: > > On Sat, Aug 11, 2007 at 03:00:22PM +0400, Dmitry A. Kharitonov wrote: > > [...] > >> [14:51:46 root@localhost ~]# sh -x /etc/control.d/facilities/sudo whee= lonly > > [...] > >> +++ find /usr/bin -maxdepth 1 -path /usr/bin/sudo -printf %m_%u_%g > >> ++ STAT=3D > >=20 > > =EE=D5 =C9 =C4=C5=CC=C1... > > =FE=D4=CF =D7 =D7=C1=DB=C5=CA =D3=C9=D3=D4=C5=CD=C5 =C7=CF=D7=CF=D2=D1= =D4 > > $ find /usr/bin -maxdepth 1 -path /usr/bin/sudo -printf %m_%u_%g\\n > > $ find /usr/bin -maxdepth 1 -path /usr/bin/sudo -ls > >=20 > >> -rws--x--- 1 root wheel 105768 =E1=D7=C7 6 00:00 /usr/bin/sudo > >> > >> =F7=D2=CF=C4=C5 =C2=D9 =D2=C1=C2=CF=D4=C1=C5=D4 =CE=CF=D2=CD=C1=CC=D8= =CE=CF. =F0=CF=C8=CF=D6=C5 =C7=CC=C0=DE=C9=D4 =CF=D4=CF=C2=D2=C1=D6=C1=CC= =CB=C1. > >=20 > > =F3=CF=CD=CE=C5=D7=C1=C0=D3=D8. > >=20 > > [...] > >> [14:58:08 root@localhost ~]# sh -x /etc/control.d/facilities/sudo > >=20 > > =F4=CF=C7=C4=C1 =D5=D6 "sh -x /etc/control.d/facilities/sudo status" > $ find /usr/bin -maxdepth 1 -path usr/bin/sudo -printf %m_%u_%g\\n > # find /usr/bin -maxdepth 1 -path usr/bin/sudo -printf %m_%u_%g\\n > $ find /usr/bin -maxdepth 1 -path /usr/bin/sudo -ls > # find /usr/bin -maxdepth 1 -path /usr/bin/sudo -ls =E1 =D0=CF=DE=C5=CD=D5 =D5 =D7=C1=D3 /usr/bin =CE=C5 =CB=C1=D4=C1=CC=CF=C7 = =C1 =D3=D3=D9=CC=CB=C1? =CE=D9=CE=C5=DB=CE=C9=CA control =CE=C1 =DC=D4=CF =CE=C5 =D2=C1=D3=D3=DE=C9= =D4=C1=CE. =ED=CF=D6=C5=D4=C5 =D0=D2=C9=CC=CF=D6=C9=D4=D8 =D0=C1=D4=DE =CE=C1 /etc/con= trol.d/functions (attached), =CE=CF =CC=D5=DE=DB=C5 =D3=C4=C5=CC=C1=CA=D4=C5 /usr/bin =D3=CE=CF=D7=C1 = =CB=C1=D4=C1=CC=CF=C7=CF=CD. --=20 ldv --2OzUYMsT4j3Kc+NU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="control-functions.diff" Content-Transfer-Encoding: quoted-printable --- /etc/control.d/functions.orig +++ /etc/control.d/functions @@ -90,7 +90,8 @@ local PATHNAME=3D"$1" BASEPATH =20 BASEPATH=3D"${PATHNAME%/*}" - find "$BASEPATH" -maxdepth 1 -path "$PATHNAME" -printf '%m_%u_%g' + [ -n "$BASEPATH" ] || return 1 + find "$BASEPATH/" -maxdepth 1 -path "$PATHNAME" -printf '%m_%u_%g' } =20 control_list() --2OzUYMsT4j3Kc+NU-- --lbQeYSs6J2ITmUo7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGvatDfKvmrJ41Nh4RAiVrAKCAyKzKbLMF8lb+wew7toGa87APyACgieoX nOCA0zDGoMdDPmYwGgYn2Dg= =QNfs -----END PGP SIGNATURE----- --lbQeYSs6J2ITmUo7--