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:
@@ -108,7 +108,7 @@ Directory::CreateFile(const char *name, File **file)
|
|||||||
status_t
|
status_t
|
||||||
Directory::CreateSymLink(const char *name, const char *path, SymLink **symLink)
|
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) {
|
if (error == B_OK) {
|
||||||
// create symlink
|
// create symlink
|
||||||
if (SymLink *node = new(nothrow) SymLink(GetVolume())) {
|
if (SymLink *node = new(nothrow) SymLink(GetVolume())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user