summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Expand)Author
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
2015-11-23Cannot pledge() in the hotroot caseTheo de Raadt
2015-11-23Revert previous tweak, as discussed on source-changes@mmcc
2015-11-23Replace socket_set_blockmode() and fcntl(fd, F_SETFL, O_NONBLOCK) callsReyk Floeter
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
2015-11-23"random generation numbers" -> "randomly generated numbers"mmcc
2015-11-23Remove the debugging infrastructure, which was ~1/3 of the code. Makesmmcc
2015-11-23Revert previous it introduces a regression found by krw@Martin Pieuchot
2015-11-23ncheck_ffs may be invoked more simply as ncheck,Jason McIntyre
2015-11-23Remove more useless comments. This whole file may go eventually, as permmcc
2015-11-23Initialize SIOCDIFADDR{_IN6,} argument as intended.Martin Pieuchot
2015-11-22Update log.c: change fatal() and fatalx() into variadic functions,Reyk Floeter
2015-11-21add missing NAME entries; ok schwarzeJason McIntyre
2015-11-21remove mlinks for aliases: ntalkd, mfs, updatedbJason McIntyre
2015-11-21Bring GPT partition editing into line with MBR partition editingKenneth R Westerback
2015-11-21Once again, fix the license text. After many years, we just cannotReyk Floeter
2015-11-21Move local logging functions to util.c (which is shared with ikectl),Reyk Floeter
2015-11-21Nuke long standing annoyance of EDIT() macros and switch both Xedit()Kenneth R Westerback
2015-11-20De-justify more comments. From FreeBSD.mmcc
2015-11-20Monospace comments are not meant to be justified. From FreeBSD.mmcc
2015-11-20Replace hardcoded "0" with SHUT_RD; from Ricardo MestreJeremie Courreges-Anglas
2015-11-19Simplify all instances of get_string() and get_data() using malloc() andmmcc
2015-11-19lexer fixes to work with new flex. from Serguey ParkhomovskyTed Unangst
2015-11-19When an existing partition is modified in LBA mode, ensure that the partitionTim van der Molen
2015-11-19Oops. Missed a file.Kenneth R Westerback
2015-11-19Remove some weird comments containing only the name of the next function.mmcc
2015-11-19Don't bother casting memset() argument to void*. No binary change.mmcc
2015-11-19calloc((size_t)1, ...) -> calloc(1, ...)mmcc
2015-11-19Reduce overburden of unnecessary #include's. Note that param.h isKenneth R Westerback
2015-11-18use _shadow getpwnam (and crypt_checkpass)Ted Unangst
2015-11-18Change #include <memory.h> to #include <string.h>Kenneth R Westerback
2015-11-18pledge exposed a simple bug: the unprivileged child tried to print theReyk Floeter
2015-11-18opendev() should not use OPENDEV_PART; ok millertTheo de Raadt
2015-11-18Parse the original on-disk MBR into a local variable. Use theKenneth R Westerback
2015-11-18g_flag does not need to be a global. Move it inside main().Kenneth R Westerback
2015-11-18Rejig the MBR file reading logic soKenneth R Westerback
2015-11-18USER_edit() (a.k.a. -e) edits the on-disk information. So zap GPTKenneth R Westerback
2015-11-18Read MBR immediately, and only read the GPT if the MBR is aKenneth R Westerback
2015-11-17note that -chs and -l are mutually exclusive;Jason McIntyre
2015-11-16initially, pledge "stdio rpath wpath cpath getpw tty id proc exec", yesTheo de Raadt
2015-11-15Move zapping of invalid GPT data into GPT_get_gpt() rather thanKenneth R Westerback
2015-11-14Since -l is ignored if -c/-h/-s are specified, make that combinationKenneth R Westerback
2015-11-14Consolidate usage() checking for -c/-h/-s with other checks. TweakKenneth R Westerback
2015-11-14pledge("stdio", NULL) for code path that just prints the MBR or GPT. i.e.Kenneth R Westerback
2015-11-14If none of -i, -u or -e are specified exit immediately after theKenneth R Westerback
2015-11-13No need to supplement usage() with extra messages about -b needing -i, orKenneth R Westerback
2015-11-13No need to zero a global variable before use.Kenneth R Westerback
2015-11-13Make usage() output fit on a 'normal' 80-character line. Tweak someKenneth R Westerback
2015-11-13Move from opening/closing disk for every i/o to opening the disk onceKenneth R Westerback
2015-11-12'reinit mbr' must zero existing MBR and GPT partition informationKenneth R Westerback