[BusyBox] RE:Busybox_unstable adduser patch2

Tito farmatito at tiscali.it
Wed Jul 17 03:59:04 UTC 2002


Hi Robert,
Thanks for committing the patch, 'cause I don't have CVS write access ( for now it is better so...;-))
I looked at the cvs today and learned my lesson about optarg and optindex in getopt,
I just have a question, in


void passwd_wrapper(const char *login)
{
	static const char prog[] = "passwd";
	execlp(prog, prog, login, NULL);
	
		How can the error_msg_and_die func intercept an error from execlp 	
                we don't need to tell to it in some way? 

	error_msg_and_die("Failed to execute 'passwd', you must set the password for '%s' manually", logi
}

                and why die as at this point the whole job is already done and we are providing
                the default password "x".
                A simple error_msg wouldn't be enough ?

Thanks in advance.
This little questions are a way for me the learn more.

Ciao

Tito





More information about the busybox mailing list