found 587121 3.1.12-1 thanks Ingo Krabbe <ikrabbe....@gmail.com> writes: > Version: 3.1.12-1 (git 98457a2f38e638d548211a3f696078f55bbbb1c0) > > The problem seems to be quite stable since some years: When using pam > with at the atd changes persona before the most inner fork @ atd.c:397 > > This causes the (completly useless?) chdir into the atjob dir to fail @ > atd.c:422f, which leads into a critical error during job execution, also > seen in syslog.
at should still run as group daemon there and thus the chdir() should not fail. What are the permissions of /var/spool/cron/at*? > A patched version simply removing the chdir call works fine. > > diff --git a/atd.c b/atd.c > index feaeeea..048d5a5 100644 > --- a/atd.c > +++ b/atd.c > @@ -419,8 +419,6 @@ run_file(const char *filename, uid_t uid, gid_t gid) > > close(fd_in); > close(fd_out); > - if (chdir(ATJOB_DIR) < 0) > - perr("Cannot chdir to " ATJOB_DIR); > > PRIV_START This still looks okay as there is a chdir("/") just a few lines later anyway. Regards, Ansgar -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org