Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!rpi!image.soe.clarkson.edu!news From: klehr@sun.soe.clarkson.edu (Thomas J. Klehr) Newsgroups: comp.os.minix Subject: Problems with at and atrun in V1.5.10 Message-ID: Date: 26 May 90 19:45:29 GMT Sender: news@sun.soe.clarkson.edu Distribution: comp.os.minix Organization: Clarkson University, Potsdam NY Lines: 46 The versions of at and atrun in V1.5.10 appear to have a few problems in them. In atrun, the group and user are set to each other. Since, atrun changes to the user and group of the file owner in /usr/spool/at/*, at has to change the owner of the file it creates after it's done making it. If at is setuid root, and atrun is either setuid root, or run only by root (via cron), it will now perform as expected. Below are my cdiffs to fix both at.c and atrun.c for version 1.5.10. ------------------------------------------------------------------------------- begin 600 atfix.tar.Z M'YV-8>BX&$,FC1D "!,J7,BPH<.'$"-*G(@0A$4;-&B & 11 P:-39V_*B1 M8\>1-6#$L$C#AHP;,V3,H#%CI4<8,&=PA$&QI\^?0(,"J#.'3A@Y%@&L85,& MC1RA#8F6D3,'JM6K6+-JW<_+$I9,' M3IDY+M#XL T"MV[>OD'PH).F39GDRV_GWMW[MYDQ;NBPP:Y@1?/MT'_7<9.F M*!GRVI]WE^X^S1OX()B/\&TF=YD$4U 1A!14$!%$%@G D, +*H P1QEXC4&= M=2C,D$("K;UP6FD&:@D"(+((A0PAQ=8<<6.8XQFT==I+ #@48:3(& @H^]@#"&670,08:1Z&00@H@A&!F$4\8 6>6:I()8XI"*A!" M?B>IF!L=+@HG7F&6>F>::;;X9YYQUWJGE&'I&"4>??UKT'1MO/$@K MN?F5"X)!8J[YQAUNH*"I&#"B24<=:9#A9KYIGM&OFW#V8&8+,:3@)P@)K,=& M;FO8NZF028;5H)$/@D '&E-%^$8=;$ I!EYA.%C&&'5,1AP(:+P1I@H:!BIK MH3,BJBBC3M+Q**Z35GIIIA,#V]&GH8Y:ZJE=):WTTDPWC5! G^31##.QY!),,LE0PU^ M53#3E?'G1511B&UT5)-/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