summaryrefslogtreecommitdiffstats
path: root/sbin/mount_msdos/mount_msdos.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | 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.
* no more -x;jmc2016-05-211-2/+2
|
* Remove the -x flag from mount_msdos and always assume the execute bitnatano2016-05-211-5/+2
| | | | | | | | | | | for readable directories, while making it subject to the mask option (-m in mount_msdos), so it is still possible to mount with non-executable directories, but with semantics that are easier to comprehend. This makes directory listings with default mount options work again. ok deraadt@
* remove unused variableschl2015-11-021-3/+1
| | | | ok krw@ millert@
* Convert many atoi() calls to strtonum(), adding range checks and failurederaadt2015-04-181-19/+11
| | | | | handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+4
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Whole bunch of (unsigned char) casts carefully added for ctype calls.deraadt2013-11-221-3/+5
| | | | Careful second audit by millert
* remove some unnecessary sys/cdefs.h inclusionsderaadt2012-12-041-2/+1
|
* Revert previous.krw2012-07-091-5/+1
| | | | | | The standards gpds are jealous gods. kettenis@ and beck@ have shown EROFS is the wrong thing to return. So revert to EACCES until a better error code is decided on.
* Return EROFS when a read-write mount of a read-only sd(4) devicekrw2012-07-081-1/+5
| | | | | | | | | | is attempted. This is instead of the current EACCES and is intended to result in better error messages from mount(8). Tweak default EROFS error text to mention fsck'ing in mount_ext2fs and mount_msdos since they both have fsck's like ffs. ok deraadt@ aja@ ian@ phessler@
* no reason not to let msdosfs mount async, from Alexander Polakovtedu2011-04-041-1/+2
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-5/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* remove some bogus *p, from charles longeautedu2007-03-201-4/+4
| | | | ok deraadt millert
* sort options; sync usage;jmc2006-12-151-3/+3
|
* Nuke GEMDOSFS. Unused part of unused atari port. Simplifieskrw2006-12-151-6/+3
| | | | | | | | MSDOSFS code. Eliminates -G option to mount_msdos. Nit detection by gwk@, tom@, jmc@. ok weingart@ tom@ thib@ dlg@ deraadt@
* Sync with recent realpath(3) changes: on failure, don't use the secondjaredy2005-04-081-3/+3
| | | | | | argument "resolved", since it is undefined. ok and help millert, otto
* use realpath() in helpers instead of doing it ourselves every time.tedu2003-07-031-13/+5
| | | | also fixes pr1662. from otto moerbeek
* convert strncat -> strlcatavsm2003-07-021-5/+5
| | | | millert@ ok
* ansificationderaadt2003-06-111-13/+9
|
* support for making directories executable if readable.tedu2003-04-181-3/+6
| | | | | | to use this, you want to run mount_msdos with -m 0644 -x or so. ok millert@
* In mount.h, rename field export -> export_info, to avoid collision with C++.espie2002-04-231-5/+5
| | | | | | | | | | | Synch files that use that field. (This argument is an internal interface specific to OpenBSD, so it won't cause compatibility problems.) (No bump, not an ABI change). ok art, millert...
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-6/+6
|
* if mount fails with EINVAL, say "not an MSDOS filesystem"millert1999-04-201-3/+3
|
* nice error message when mount(2) returns EOPNOTSUPPart1998-12-211-2/+5
|
* Now that mount(2) sets errno to EFTYPE, not EINVAL for "invalid file system"kstailey1997-06-201-6/+3
| | | | we can use NLS for the text, not a hardcode English message.
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* does noone know how to use strncat correctly?deraadt1996-12-161-4/+4
|
* better error messagesderaadt1996-12-091-4/+22
|
* Add MOPT_UPDATE to mount options since there is filesystemmillert1996-11-241-3/+4
| | | | support for it. From NetBSD (cgd).
* update rcsidderaadt1996-06-231-1/+2
|
* sync to netbsd 960418deraadt1996-04-211-3/+3
|
* from leo; add -G flag for mounting atari gemdos filesystemsderaadt1996-01-291-3/+6
|
* from ws@netbsd:deraadt1995-12-141-3/+12
| | | | | - Add support for Win'95 separate creation/modification/access timestamps - Re-introduce lowercase filenames for non-Win'95-filesystems
* initial import of NetBSD treederaadt1995-10-181-0/+201