Don't try to write back symlinks that don't have a data stream. This fixes bug #1179.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20813 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-04-25 16:12:42 +00:00
parent 1d63cfdc5b
commit c845a2964e
@@ -2037,6 +2037,9 @@ Inode::Sync()
// We may also want to flush the attribute's data stream to
// disk here... (do we?)
if (IsSymLink() && (Flags() & INODE_LONG_SYMLINK) == 0)
return B_OK;
data_stream *data = &Node().data;
status_t status = B_OK;