in case of Mac OS X, mode_t type is unsigned short.
So, -1 cannot be compared to mode_t type.
Change-Id: Iad1e4a1049e14de0575ed6da11b339ed9045b12d
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
if (credp->fc_gid != -1) {
gid = credp->fc_gid;
}
-// FIXME
#ifndef CONFIG_WIN32
- if (credp->fc_mode != -1) {
+ if (credp->fc_mode != (mode_t)-1) {
mode = credp->fc_mode;
}
#else
return err;
}
}
- if (credp->fc_mode != -1) {
+ if (credp->fc_mode != (mode_t)-1) {
err = setxattr(path, "user.virtfs.mode", &credp->fc_mode,
sizeof(mode_t), 0, 0);
if (err) {