aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2025-11-22 09:22:28 +0000
committerRon Yorston <rmy@pobox.com>2025-11-22 09:22:28 +0000
commit18ad143f86ded661ae4d2bef0e3a36490e786963 (patch)
tree36501e944545a3b747b872889d3e0dc07a7ccfcf /libbb
parent0ee678e0d1d465f3d83fb22a4ec4e7ca33686284 (diff)
downloadbusybox-w32-master.tar.gz
busybox-w32-master.tar.bz2
busybox-w32-master.zip
mkdir: correctly report directory creationHEADmaster
It was found that 'mkdir -p --verbose C:/' incorrectly reported that 'C:/' was created. Commit 0e0b5e9ff8 (mingw.c: ignore EACCES from mkdir if directory exists) fixed a failure to create directories but caused the `mkdir` applet to issue the wrong diagnostic. The underlying problem is in the Windows runtime implementation of _mkdir(): it can return the wrong errno in some cases, EACCES instead of EEXIST. Having the mkdir(2) wrapper return the correct errno should fix both the directory creation and verbose diagnostic problems. The website referenced in the previous commit is no longer available. archive.org has a copy: https://web.archive.org/web/20150224075238/http://www.apijunkie.com/APIJunkie/blog/post/2009/12/22/_mkdir-C-runtime-library-function-might-return-unexpected-error-values.aspx (GitHub issue #546)
Diffstat (limited to 'libbb')
0 files changed, 0 insertions, 0 deletions