* remote-fileio.c (remote_fileio_mode_to_target): Use

S_ISREG/S_ISDIR/S_ISCHR macros instead of S_IFREG/S_IFDIR/S_IFCHR.
This commit is contained in:
Mark Kettenis
2006-12-15 23:17:56 +00:00
parent 657ff16a6b
commit 9c7deb13f0
2 changed files with 8 additions and 3 deletions

View File

@@ -192,11 +192,11 @@ remote_fileio_mode_to_target (mode_t mode)
{
mode_t tmode = 0;
if (mode & S_IFREG)
if (S_ISREG(mode))
tmode |= FILEIO_S_IFREG;
if (mode & S_IFDIR)
if (S_ISDIR(mode))
tmode |= FILEIO_S_IFDIR;
if (mode & S_IFCHR)
if (S_ISCHR(mode))
tmode |= FILEIO_S_IFCHR;
if (mode & S_IRUSR)
tmode |= FILEIO_S_IRUSR;