Ugh! Tested the value of the symlink() symbol instead of the symLink
parameter. Spotted by gcc4. :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20344 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7b4b242d27
commit
4b997aa15a
@ -108,7 +108,7 @@ Directory::CreateFile(const char *name, File **file)
|
||||
status_t
|
||||
Directory::CreateSymLink(const char *name, const char *path, SymLink **symLink)
|
||||
{
|
||||
status_t error = (name && symlink ? B_OK : B_BAD_VALUE);
|
||||
status_t error = (name && symLink ? B_OK : B_BAD_VALUE);
|
||||
if (error == B_OK) {
|
||||
// create symlink
|
||||
if (SymLink *node = new(nothrow) SymLink(GetVolume())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user