Return to sftp.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.91, 2006/08/03 03:34:42 | version 1.92, 2006/09/19 05:52:23 | ||
---|---|---|---|
|
|
||
if (stat(path, &sb) == -1) | if (stat(path, &sb) == -1) | ||
return(0); | return(0); | ||
return(sb.st_mode & S_IFDIR); | return(S_ISDIR(sb.st_mode)); | ||
} | } | ||
static int | static int | ||
|
|
||
return(0); | return(0); | ||
if (!(a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS)) | if (!(a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS)) | ||
return(0); | return(0); | ||
return(a->perm & S_IFDIR); | return(S_ISDIR(a->perm)); | ||
} | } | ||
static int | static int |