symlink: report symlinks to cygwin in NfsV3Attributes

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2010-10-19 15:28:29 -04:00 committed by unknown
parent a7e2d6ad2a
commit bff723a91b

View file

@ -3295,7 +3295,9 @@ void print_nfs3_attrs(nfs3_attrs *attrs)
void create_nfs3_attrs(nfs3_attrs *attrs, PNFS41_FCB nfs41_fcb) void create_nfs3_attrs(nfs3_attrs *attrs, PNFS41_FCB nfs41_fcb)
{ {
RtlZeroMemory(attrs, sizeof(nfs3_attrs)); RtlZeroMemory(attrs, sizeof(nfs3_attrs));
if (nfs41_fcb->StandardInfo.Directory) if (nfs41_fcb->BasicInfo.FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
attrs->type = NF3LNK;
else if (nfs41_fcb->StandardInfo.Directory)
attrs->type = NF3DIR; attrs->type = NF3DIR;
else else
attrs->type = NF3REG; attrs->type = NF3REG;