Ignore:
Timestamp:
Sep 1, 2016, 5:12:24 PM (9 years ago)
Author:
bird
Message:

updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/ntstat.c

    r2851 r2858  
    208208    pStat->st_uid           = 0;
    209209    pStat->st_gid           = 0;
    210     pStat->st_padding1[0]   = 0;
    211     pStat->st_padding1[1]   = 0;
    212     pStat->st_padding1[2]   = 0;
     210    pStat->st_padding1      = 0;
     211    pStat->st_attribs       = pBuf->FileAttributes;
    213212    pStat->st_blksize       = 65536;
    214213    pStat->st_blocks        = (pBuf->AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1)
     
    241240    pStat->st_uid           = 0;
    242241    pStat->st_gid           = 0;
    243     pStat->st_padding1[0]   = 0;
    244     pStat->st_padding1[1]   = 0;
    245     pStat->st_padding1[2]   = 0;
     242    pStat->st_padding1      = 0;
     243    pStat->st_attribs       = pBuf->FileAttributes;
    246244    pStat->st_blksize       = 65536;
    247245    pStat->st_blocks        = (pBuf->AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1)
     
    274272    pStat->st_uid           = 0;
    275273    pStat->st_gid           = 0;
    276     pStat->st_padding1[0]   = 0;
    277     pStat->st_padding1[1]   = 0;
    278     pStat->st_padding1[2]   = 0;
     274    pStat->st_padding1      = 0;
     275    pStat->st_attribs       = pBuf->FileAttributes;
    279276    pStat->st_blksize       = 65536;
    280277    pStat->st_blocks        = (pBuf->AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1)
     
    314311            pStat->st_uid           = 0;
    315312            pStat->st_gid           = 0;
    316             pStat->st_padding1[0]   = 0;
    317             pStat->st_padding1[1]   = 0;
    318             pStat->st_padding1[2]   = 0;
     313            pStat->st_padding1      = 0;
     314            pStat->st_attribs       = pAll->StandardInformation.FileAttributes;
    319315            pStat->st_blksize       = 65536;
    320316            pStat->st_blocks        = (pAll->StandardInformation.AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1)
     
    389385        pStat->st_uid           = 0;
    390386        pStat->st_gid           = 0;
    391         pStat->st_padding1[0]   = 0;
    392         pStat->st_padding1[1]   = 0;
    393         pStat->st_padding1[2]   = 0;
     387        pStat->st_padding1      = 0;
     388        pStat->st_attribs       = BasicInfo.FileAttributes;
    394389        pStat->st_blksize       = 65536;
    395390        pStat->st_blocks        = (StdInfo.AllocationSize.QuadPart + BIRD_STAT_BLOCK_SIZE - 1)
     
    608603                pStat->st_uid               = 0;
    609604                pStat->st_gid               = 0;
    610                 pStat->st_padding1[0]       = 0;
    611                 pStat->st_padding1[1]       = 0;
    612                 pStat->st_padding1[2]       = 0;
     605                pStat->st_padding1          = 0;
     606                pStat->st_attribs           = fFileType == FILE_TYPE_PIPE ? FILE_ATTRIBUTE_NORMAL : FILE_ATTRIBUTE_DEVICE;
    613607                pStat->st_blksize           = 512;
    614608                pStat->st_blocks            = 0;
Note: See TracChangeset for help on using the changeset viewer.