#include <exec/types.h>
#include <exec/memory.h>
#include <exec/execbase.h>
#include <libraries/dosextens.h>
#include <proto/exec.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>

#define VERSION		"1"
#define REVISION	"01"
#define DATE		"12.2.94"
#define VERSTAG		"\0$VER: "

extern struct ExecBase *SysBase;
char *version=VERSTAG"Login "VERSION"."REVISION" ("DATE")";

void main(int argc,char *argv[])
{
	if(argc!=2)
	{
		printf("Usage: login [UID]\n");
		exit(10);
	}
	if(SysBase->ThisTask->tc_Node.ln_Type==NT_PROCESS)
	{
		((struct Process *)SysBase->ThisTask)->pr_Pad=atoi(argv[1]);
	}	/* otherwise very strange, we do not run from cli.. */
}
