date: fix panic on extreme format width modifiers
- Cap width values at 1024 characters to prevent memory allocation failures
- Add regression test for extreme width values
- Fixes #11044
touch: fix inotify compatibility by avoiding O_TRUNC
Replace File::create() with OpenOptions::new().create_new(true) to avoid
the O_TRUNC flag that interferes with inotify file change detection.
The O_TRUNC flag in file creation was causing issues with applications
like 0 A.D. that monitor configuration files for changes using inotify.
The new implementation uses O_EXCL instead, which is safer and doesn't
interfere with inotify event generation.
closes: #9812