aboutsummaryrefslogtreecommitdiffstats
path: root/asroot.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add comment to keep env whitelist in sync with key2rootMattias Andrée2023-06-231-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix typosMattias Andrée2023-06-231-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix a buf and a portability issue found by Jonathan Frech1.1.4Mattias Andrée2021-03-241-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>
* Fix support for long hostnames1.1.3Mattias Andrée2021-03-221-1/+2
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Correction: set value of SHELL to pw_shell, rather than pw_dir1.1.2Mattias Andrée2021-03-221-2/+2
| | | | | | Thank you to Jonathan Frech for catching this mistake Signed-off-by: Mattias Andrée <maandree@kth.se>
* Remove redundant extern declaration of environ1.1Mattias Andrée2021-02-011-2/+0
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Eliminiate unncessary code if RETRY_SLEEP is nonpositiveMattias Andrée2021-02-011-3/+8
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Add customisation instructions to config.mk, rename ERROR_SLEEP to RETRY_SLEEP, and remove sleep instruction if RETRY_SLEEP is nonpositiveMattias Andrée2021-02-011-3/+5
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Fix exit valueMattias Andrée2021-02-011-1/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* m1.0Mattias Andrée2021-01-311-0/+1
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* Check passwordMattias Andrée2021-01-311-73/+285
| | | | Signed-off-by: Mattias Andrée <maandree@kth.se>
* First commitMattias Andrée2021-01-311-0/+180
Signed-off-by: Mattias Andrée <maandree@kth.se>