From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647622179.tru64-unix-managers.marc@archive.invalid> From: jasper Hoon Date: Wed, 30 May 2001 06:44:01 +0000 To: tru64-unix-managers Subject: Summary: Memory fault (Coredump) with pswd validation program X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647622179 The problem was indeed with the incorrect passing of arguments. Many thanks to the following people who sent information as well as replacement code! Stanislav S. Anokhin Dr. Thomas.Blinn@Compaq.com James Sainsbury Jeff Sullivan Ann Majeske Roetman, Paul The correct way is shown here: =========== #include #include #include #include #include main (int argc, char *argv[]) { int auth_status; int myargc; char *myargv[2]; myargc = 1; myargv[0] = "chkpass"; myargv[1] = NULL; auth_status=sia_validate_user(NULL,myargc,myargv,NULL,argv[1], NULL,0,NULL , argv[2]); if( auth_status != SIASUCCESS){ printf("wrong password \n"); return(1); } printf("right password \n"); return 0; } ============== ________________________________________________________________ Mid-year intake! Enrol NOW & stand a chance to win 25% discount http://www.milpark.co.za