From bff723a91b65f94266cbdd639f98d2c0d1305745 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 19 Oct 2010 15:28:29 -0400 Subject: [PATCH] symlink: report symlinks to cygwin in NfsV3Attributes Signed-off-by: Casey Bodley --- sys/nfs41_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c index 5ba21d2..79f1c41 100644 --- a/sys/nfs41_driver.c +++ b/sys/nfs41_driver.c @@ -3295,7 +3295,9 @@ void print_nfs3_attrs(nfs3_attrs *attrs) void create_nfs3_attrs(nfs3_attrs *attrs, PNFS41_FCB nfs41_fcb) { 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; else attrs->type = NF3REG;