*
* HgfsGetHiddenXAttr --
*
- * Always returns EINVAL since there is no support for invisible files in Linux
+ * Always returns 0 since there is no support for invisible files in Linux
* HGFS server.
*
* Results:
- * Currently always returns EINVAL. Will return 0 when support for invisible files
- * is implemented in Linux server.
+ * 0 always. This is required to allow apps that use the hidden feature to
+ * continue to work. attribute value is set to FALSE always.
*
* Side effects:
* None
HgfsGetHiddenXAttr(char const *fileName, // IN: File name
Bool *attribute) // OUT: Value of the hidden attribute
{
- return EINVAL;
+ *attribute = FALSE;
+ return 0;
}
* HgfsSetHiddenXAttr --
*
* Sets new value for the invisible attribute of a file.
- * Currently Linux server does not support invisible or hiddden files thus
- * the function fails when a attempt to mark a file as hidden is made.
+ * Currently Linux server does not support invisible or hiddden files.
+ * So this is a nop.
*
* Results:
- * 0 if succeeded, error code otherwise.
+ * 0 always. This is required to allow apps that use the hidden feature to
+ * continue to work.
*
* Side effects:
* None
HgfsSetHiddenXAttr(char const *fileName, // IN: File name
Bool value) // IN: Value of the attribute to set
{
- return value ? EINVAL : 0;
+ return 0;
}
#endif // __APPLE__