1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 16:42:56 -08:00
Commit Graph

22 Commits

Author SHA1 Message Date
claudio
febe0fa6d0 msdos already transfroms for Windows long names a '/' char into '?'.
Do the same for the 8.3 case as well.

This is not ideal since now it is possible that two files in the same
directory have the same name but the msdos code already does a lot of
this and so the problem already exists.

OK beck@ miod@
2024-09-12 09:07:28 +00:00
jsg
36dba039b9 with empty body loops, put final semicolon on a new line for readability
ok bluhm@ jca@
2024-04-14 03:26:25 +00:00
cheloha
612d413b9d msdosfs: remove timezone support
This support is undocumented, only works if you're using the kernel
timezone, and breaks during a DST shift.  It also preferences file systems
managed by a Windows installation: many implementations, like ours, use
UTC by default (think: phones, digital cameras).

No complaints on tech@.

"good riddance" tedu@, "Yep." deraadt@
2019-09-04 14:40:22 +00:00
krw
9eacea01e9 Nuke a bunch of leading/embedded/trailing whitespace so the code can be
read without generating spurious headaches.
2015-10-23 10:45:31 +00:00
tedu
fde894e58b primary change: move uvm_vnode out of vnode, keeping only a pointer.
objective: vnode.h doesn't include uvm_extern.h anymore.
followup changes: include uvm_extern.h or lock.h where necessary.
ok and help from deraadt
2014-12-16 18:30:03 +00:00
krw
35cd4f41a3 msdosfs timestamps can only represent 1/1/1980 through
12/31/2107. 64-bit time_t now dominates that entire range, so simply
set all dates that cannot be represented to 1/1/1980 like Redmond
intended.

Problem reported by Alessandro De Laurenzis via misc@.

ok guenther@
2014-04-21 15:35:02 +00:00
sf
7e0e4efd60 Format string fixes: %hu/%hd for uint16_t, %u/%d/%x for uint32_t
- despite the name, ntohl returns uint32_t, not long
- also fix some %d into %u
2013-10-01 20:22:11 +00:00
krw
e6f855f7a7 Remove the need to occasionally treat dos file names as strings by
using "%.11s" to print them out. Make all dos file names 11 byte
arrays and nuke the attempt to put '\0' at the 12th position of
such an array.

Fixes 'panic: smashed stack in msdosfs_rename.c' reported by
MERHIGI Marcus via tech@.

Tested by MERHIGI Marcus. Suggestions and ok tedu@.
2012-09-06 19:06:04 +00:00
jasper
7d80fe8454 - ansify function declarations, no binary change
"fine" thib@
2009-08-13 22:34:29 +00:00
tedu
dbe27ba0ed use pool for namei pathbuf. testing ok millert@ tdeval@ 2004-05-14 04:00:33 +00:00
tedu
82fa9538c3 32 bit ints are uint32_t, not u_long. works on 64bit now. ok deraadt@ 2004-05-12 21:04:15 +00:00
millert
59af49d198 Fix false positives when comparing long file names that have the
same first 13 (or some multiple thereof) characters.
Fix was verified by reporter (Kong Long); from NetBSD
2004-03-31 18:48:15 +00:00
mickey
359756ec3b constify the conversion tables 2003-07-29 19:26:38 +00:00
pvalchev
2f623323ae It's Daylight Saving Time, not Savings. Fix comments.
Discussed with pjanzen@
2001-05-17 00:57:53 +00:00
provos
b099d67b3c FAT32 support from NetBSD by Wolfgang Solfrank. 1998-01-11 20:39:02 +00:00
deraadt
bae0976a63 cleanup timestamp code for NT/Win95; khym@bga.com 1997-10-04 19:08:10 +00:00
millert
78b4a1c43a Sync msdosfs with NetBSD sans const-ness. NetSBD log messages:
Fix panic on mkdir.
    Thanks to Dave Huang for finding the bug.
    Fixes a bug with allowed/forbidden characters in non-W95 filenames.
    Don't extend directory when nothing is written to it.
1997-03-02 18:01:50 +00:00
niklas
b957d68bca Fix missed s/ts_/tv_/ replacements in last patch 1996-03-02 00:54:54 +00:00
niklas
879b3eab97 From NetBSD: merge with 960217 1996-02-29 10:46:45 +00:00
mickey
98bd7f4226 elliminate unneccessary printf in dos2unix time conversion,
coze for Windoze 95 fs it is ok.
1996-02-21 07:41:05 +00:00
deraadt
16bf7bd108 from netbsd (mostly by ws):
Win95 ignores case on lookup
Really don't generate long names when mounted with -s
Fix cookie handling
Don't forward credentials to bread, it makes nfs panic
(Of course, nfs shouldn't rely on the credentials not being referenced)
Don't give directory entry to deget, it could result in a deadlock
Use device blocks, not clusters for logical block numbers
Add support for Win'95 separate creation/modification/access timestamps
Re-introduce lowercase filenames for non-Win'95-filesystems
Fix thinko with block boundaries in directories
Don't overwrite dirclust, it's needed later on
Enable flock(2).
1995-12-14 04:19:50 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00