aboutsummaryrefslogtreecommitdiffstats
path: root/util/mkdir-p.pl
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearMatt Caswell2021-04-081-1/+1
| | | | | Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14801)
* Print correct error message in utils/mkdir-p.plAlex Yursha2021-03-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | Commit 70a56b914772e6b21cda2a5742817ae4bb7290f1 introduced a regression. If utils/mkdir-p.pl fails to create a target dir because of insufficient file system permissions, the subsequent test for dir existence always fails and overwrites the system error. As a result, a user is presented with a misleading error message. E.g. if a user tries to create a dir under /usr/local and does not have permissions for it, the reported error message is "Cannot create directory /usr/local/lib: No such file or directory", whereas the expected error message is "Cannot create directory /usr/local/lib: Permission denied". This commit introduces a fix by declaring an additional local variable to cache the original error message from mkdir. If -d check fails and overwrites the system error, the user is still presented with the original error from mkdir. CLA: Trivial Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14487)
* Following the license change, modify the boilerplates in util/, tools/Richard Levitte2018-12-061-1/+1
| | | | | Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7766)
* utils/mkdir-p: check if dir exists also after mkdir failedSebastian Andrzej Siewior2016-06-231-1/+7
| | | | | | | | | | | | with "make install -j8" it happens very often that two or more make instances are creating the same directory in parallel. As a result one instace creates the directory and second mkdir fails because the directory exists already (but it did not while testing for it earlier). Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1204)
* Copyright consolidation: perl filesRich Salz2016-04-201-3/+7
| | | | | | | | | Add copyright to most .pl files This does NOT cover any .pl file that has other copyright in it. Most of those are Andy's but some are public domain. Fix typo's in some existing files. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Update from stable branch.Dr. Stephen Henson2005-11-061-0/+1
|
* Don't make assumptions on what the path looks like.Bodo Möller1999-06-081-4/+4
|
* mkdir -p is not fully portable (according to Marc Crispin,Bodo Möller1999-06-071-0/+33
NeXTstep creates a directory called -p); now mkdir-p.pl does its job.