On Fri, Jul 22, 2005 at 12:08:00AM +0300, Alexander Gattin wrote: > On Wed, Jul 20, 2005 at 08:00:09AM +0200, Marc Haber wrote: > > the config script fails with exit code 1 (but without error message) > > if shadowconfig fails, for example when a syntax error is found in the > > group file. > > But, err..., when there's a syntax error in > /etc/group or /etc/passwd file, the whole system can be > considered broken, at least partially. Couldn't it?
So have the program say so and then error out. Silently failing is not an option. > > A little more error checking would be good. > > Marc, sorry, could you please explain in more details > what you mean here? if ! shadowconfig bla; then echo >&2 "ERR: shadowconfig failed" exit 1 fi Having the -e trip is something to be avoided. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]