mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
7368eb621e
If mkdirp() is called with a NULL ptr for the path arg, it will return -1 with errno unchanged. This is unexpected since on error it should return -1 and set errno to one of the error values listed for mkdir(2). This commit sets errno = ENOENT for this NULL ptr case. This is in accordance with the errors specified by mkdir(2): ENOENT A component of the path prefix does not exist or is a null pathname. Signed-off-by: Chris Dunlap <cdunlap@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #2248 |
||
---|---|---|
.. | ||
asm-generic | ||
asm-i386 | ||
asm-x86_64 | ||
include | ||
getexecname.c | ||
gethrestime.c | ||
gethrtime.c | ||
getmntany.c | ||
list.c | ||
Makefile.am | ||
mkdirp.c | ||
strlcat.c | ||
strlcpy.c | ||
strnlen.c | ||
timestamp.c | ||
xdr.c | ||
zone.c |