search for: file_attribute_arch

Displaying 3 results from an estimated 3 matches for "file_attribute_arch".

2011 Jun 20
2
How do i get file attributes using samba.
...to extract the following attributes of a file in Windows share using samba. /* FileAttributesField */ #define FILE_ATTRIBUTE_READONLY???????? 0x001L #define FILE_ATTRIBUTE_HIDDEN?????????? 0x002L #define FILE_ATTRIBUTE_SYSTEM?????????? 0x004L #define FILE_ATTRIBUTE_DIRECTORY??????? 0x010L #define FILE_ATTRIBUTE_ARCHIVE????????? 0x020L #define FILE_ATTRIBUTE_NORMAL?????????? 0x080L #define FILE_ATTRIBUTE_TEMPORARY??????? 0x100L #define FILE_ATTRIBUTE_SPARSE?????????? 0x200L #define FILE_ATTRIBUTE_REPARSE_POINT??? 0x400L #define FILE_ATTRIBUTE_COMPRESSED?????? 0x800L #define FILE_ATTRIBUTE_OFFLINE????????? 0x100...
2003 Apr 10
0
Bug in Samba v2.2.8a with Windows API GetFileAttributes ?
...stream.h> int main (int argc, char** argv) { if (argc != 2) { cout << "Usage: test <pathname>" << endl; return 1; } const char* pn = argv[1]; DWORD rc = GetFileAttributes(pn); if (0xFFFFFFFF != rc && (rc & (FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_READONLY)) && !(rc & (FILE_ATTRIBUTE_DIRECTORY))) { cout << " SUCCESS: pathname [" << pn << "] is a file! rc=" << hex << rc << endl; return 0; } else { cout << " FAILURE:...
1999 Jul 02
1
preexec: return code not used? (PR#18576)
T.D.Lee@durham.ac.uk wrote: > > > But we'd like to go one step further and have the return code from preexec > be used to continue or abort the connection being established. The script > above would be modified to generate this return code. > > Looking through the source code (smbd/service.c), it doesn't seem to check > the return code (calling smbrun to do the