aboutsummaryrefslogtreecommitdiffstats
path: root/asroot.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-24Fix a buf and a portability issue found by Jonathan Frech1.1.4Mattias Andrée1-3/+5
1) Fix read of potententially uninitialised memory when reading hostname This bug could cause the program to enter a loop and eventually die because it cannot allocate memory. 2) Instead of using execvpe(3) (non-standard), set environ and call execvp(3). (This works because asroot does not change PATH.) Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-03-22Fix support for long hostnames1.1.3Mattias Andrée1-1/+2
Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-03-22Correction: set value of SHELL to pw_shell, rather than pw_dir1.1.2Mattias Andrée1-2/+2
Thank you to Jonathan Frech for catching this mistake Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-02-22Fix typo1.1.1Mattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-02-01Remove redundant extern declaration of environ1.1Mattias Andrée1-2/+0
Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-02-01Eliminiate unncessary code if RETRY_SLEEP is nonpositiveMattias Andrée1-3/+8
Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-02-01Add customisation instructions to config.mk, rename ERROR_SLEEP to RETRY_SLEEP, and remove sleep instruction if RETRY_SLEEP is nonpositiveMattias Andrée2-3/+18
Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-02-01Fix exit valueMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-01-31m1.0Mattias Andrée1-0/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2021-01-31Add README and m fixes to man pageMattias Andrée2-6/+36
Signed-off-by: Mattias Andrée <maandree@kth.se>