summaryrefslogtreecommitdiff
path: root/lib/libutil/readlabel.c
AgeCommit message (Collapse)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2016-08-30Use O_CLOEXEC when opening fds local to a functionPhilip Guenther
ok jca@ krw@
2015-01-16Move to the <limits.h> universe.Theo de Raadt
review by millert, binary checking process with doug, concept with guenther
2014-06-30sort includes much more sensiblyTheo de Raadt
2010-11-15Teach readlabelfs() how to handle DUIDs.Joel Sing
ok krw@
2006-10-02Fix off by one comparison. FSMAXTYPES is the last valid index intoKenneth R Westerback
fstypesnames[], but that entry is NULL. The last valid file system name is at fstypesnames[FSMAXTYPES-1]. Encountered and diagnosed by pedro@. ok pedro@ deraadt@
2004-09-18label a switch fallthroughTheo de Raadt
2004-05-28knf; otto okTheo de Raadt
2002-02-21fgsch, if you commit without test compiling ONE MORE TIME, I will send a ↵Theo de Raadt
castration team down to argentina
2002-02-21use sizeof w/ defines; niklas@ millert@ ok.Federico G. Schwindt
2001-08-16consistently use #include "util.h" not <util.h> since util.h lives in this dir.Todd C. Miller
1997-11-18-WallTodd C. Miller
1996-12-23readlabelfs() takes two arguments now, update prototype, inc major number.Jason Downs
1996-12-04sanitize return value. NULL on failure, always.Jason Downs
1996-12-03Add readlabelfs().Jason Downs