summaryrefslogtreecommitdiff
path: root/sbin/swapctl/swapctl.c
AgeCommit message (Collapse)Author
2001-06-04return from main() don't exitMichael Shalayeff
2001-06-02Various swapctl(8) improvements:Miod Vallat
- don't print an error message when trying to enable swap on an already active swap point. - better handling of -t option. - silently ignores swap points which are neither block devices nor regular files, and don't consider swap points not starting with /dev/ as valid block devices, when invoked with -A. Work by deraadt@ and myself, ok millert@
2001-03-09PATH_MAX+1 is wrong. Not cranking libc/libc_r majors over this, since they ↵Theo de Raadt
just got cranked a little while ago. discussion with millert
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
2000-02-26add rcs identsHugh Graham
1999-05-22Initial import of swapctl(8).Tobias Weingartner