git://scientific.zcu.cz
/
dmlite-plugins-vfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ac59f1
)
More friendly error message for makeDir("").
author
František Dvořák
<valtri@civ.zcu.cz>
Thu, 17 Oct 2013 17:48:00 +0000
(19:48 +0200)
committer
František Dvořák
<valtri@civ.zcu.cz>
Thu, 17 Oct 2013 17:48:00 +0000
(19:48 +0200)
src/VfsNs.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/VfsNs.cpp
b/src/VfsNs.cpp
index
26793dd
..
c7c6b92
100644
(file)
--- a/
src/VfsNs.cpp
+++ b/
src/VfsNs.cpp
@@
-673,6
+673,9
@@
void VfsCatalog::makeDir(const std::string& path, mode_t mode) throw (DmExceptio
{
std::string parentPath, name;
+ if (path.empty())
+ vfsThrow(EINVAL, "empty directory name");
+
ExtendedStat parent = this->getParent(path, &parentPath, &name);
if (checkPermissions(this->secCtx_, parent.acl, parent.stat, S_IEXEC) != 0)