summaryrefslogtreecommitdiff
path: root/sbin/swapctl/swapctl.c
AgeCommit message (Collapse)Author
2007-11-26if no arguments given, assume a nice default; ok miod jakemsr deannaTheo de Raadt
2007-07-17sync swapon usage(); from Igor ZinovikJason McIntyre
2007-07-16Remove dead code and fix incorrect comment. From Igor Zinovik.Todd C. Miller
2005-04-12handle snprintf potential -1 caseTheo de Raadt
2004-01-12- avoid variable sized static array (from millert@)Anil Madhavapeddy
- check for snprintf overflow - errx -> err for strdup commit #1000!
2003-09-26check strdup failure; ok anil millertTheo de Raadt
2003-03-03Fix inaccuracies in comments.Miod Vallat
2002-07-03ansiTheo de Raadt
2002-05-15typo in comment.Artur Grabowski
From Sam Smith S at mSmith.net
2002-05-15Kill commented out stubs for swapoff.Artur Grabowski
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
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