jmsellens@watmath.waterloo.edu (09/24/89)
From: John M Sellens <jmsellens> SunOS cron seems to run with USER set to the empty string, so batch refuses to any jobs. It should probably do getpwuid(0) if the getpwnam() fails and send mail to the0 userid. /* * Set up a $USER mailuserid for ROOT if one isn't given. */ if( uid == 0 && mailuserid == NULL && (mailuserid = getenv("USER")) != NULL ){ if( getpwnam(mailuserid) == NULL ){ error1("Can't find $USER='%s' in passwd file\n", mailuserid); cleanup(0); } }