Seems to be a libsmack issue at a glance.
Change-Id: I10dfc7e3cbc83450d730eaf4d008ac33e9b50a4b
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
return 0;
}
+ /* WORK-AROUND. It appears that for symlinks, ENOENT
+ * is returned instead of ENODATA but otherwise has
+ * the same meaning. We can be certain of the existence
+ * of the files because we wouldn't have reached here
+ * if creation failed, so don't bother checking for a
+ * false negative, and ignore this error. */
+ if (ret == -1 && errno == ENOENT)
+ return 0;
+
return ret;
}