search for: file_attribute_directory

Displaying 13 results from an estimated 13 matches for "file_attribute_directory".

2011 Jun 20
2
How do i get file attributes using samba.
Hi, I need 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 #de...
2004 Dec 14
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...wrote: >Henrik, > >modTime.fromWin32Time(ftLastWriteTime); > Note that you'll need write a "fromWin32Time" for the TimeValue > class to make the conversion of ftLastWriteTime to TimeValue's > notion of normalized time. > >isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; > >fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); > >The mode, user, and group fields aren't applicabe to Win32 so just set >them as follows (to avoid Unix issues): > >user = 9999; >group = 9999; >mode = 0777; > >Reid. > >On Mon, 2004...
2004 Dec 13
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Henrik, modTime.fromWin32Time(ftLastWriteTime); Note that you'll need write a "fromWin32Time" for the TimeValue class to make the conversion of ftLastWriteTime to TimeValue's notion of normalized time. isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); The mode, user, and group fields aren't applicabe to Win32 so just set them as follows (to avoid Unix issues): user = 9999; group = 9999; mode = 0777; Reid. On Mon, 2004-12-13 at 15:15, Henrik Bach wrote: > Hi, > &...
2004 Dec 14
0
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
...>modTime.fromWin32Time(ftLastWriteTime); > > Note that you'll need write a "fromWin32Time" for the TimeValue > > class to make the conversion of ftLastWriteTime to TimeValue's > > notion of normalized time. > > > >isDir = dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY; > > > >fileSize = nFileSizeLow + (nFileSizeHigh << sizeof(DWORD)*8); > > > >The mode, user, and group fields aren't applicabe to Win32 so just set > >them as follows (to avoid Unix issues): > > > >user = 9999; > >group = 9999; > >mode...
2004 Dec 13
2
[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Hi, Does any one have an idea which fields and how to the values correctly of the StatusInfo struct when dealing with the information returned in the BY_HANDLE_FILE_INFORMATION struct (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/by_handle_file_information_str.asp) from windows instead of the unix stuff in getStatusInfo: --- (excerpt start) -------------
2020 Aug 24
0
smbclient mask command seems not to work the same way with recurse ON for mget and mput
...******************************* Decide if a file should be operated on. ********************************************************************/ static bool do_this_one(struct file_info *finfo) { if (!finfo->name) { return false; } if (finfo->attr & FILE_ATTRIBUTE_DIRECTORY) { return true; } if (*client_get_fileselection() && !mask_match(finfo->name,client_get_fileselection(),false)) { DEBUG(3,("mask_match %s failed\n", finfo->name)); return false; } ..... Not...
2003 Apr 10
0
Bug in Samba v2.2.8a with Windows API GetFileAttributes ?
...<< "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: pathname [" << pn << "] is not a file! rc=" << he...
2016 Oct 26
0
[Announce] Samba 4.4.7 Available for Download
...mbi at samba.org> * BUG 9945: Setting specific logger levels in smb.conf makes 'samba-tool drs showrepl' crash. o Björn Baumbach <bb at sernet.de> * BUG 8618: s3-printing: Fix migrate printer code. o Ralph Boehme <slow at samba.org> * BUG 12261: s3/smbd: Set FILE_ATTRIBUTE_DIRECTORY as necessary. o Günther Deschner <gd at samba.org> * BUG 12285: "DriverVersion" registry backend parsing incorrect in spoolss. o David Disseldorp <ddiss at samba.org> * BUG 12144: smbd/ioctl: Match WS2016 ReFS get compression behaviour. o Amitay Isaacs <amitay a...
2016 Oct 26
0
[Announce] Samba 4.4.7 Available for Download
...mbi at samba.org> * BUG 9945: Setting specific logger levels in smb.conf makes 'samba-tool drs showrepl' crash. o Björn Baumbach <bb at sernet.de> * BUG 8618: s3-printing: Fix migrate printer code. o Ralph Boehme <slow at samba.org> * BUG 12261: s3/smbd: Set FILE_ATTRIBUTE_DIRECTORY as necessary. o Günther Deschner <gd at samba.org> * BUG 12285: "DriverVersion" registry backend parsing incorrect in spoolss. o David Disseldorp <ddiss at samba.org> * BUG 12144: smbd/ioctl: Match WS2016 ReFS get compression behaviour. o Amitay Isaacs <amitay a...
2020 Aug 24
2
smbclient mask command seems not to work the same way with recurse ON for mget and mput
Dear fellows. Another piece of information. The issue reprduces on RHEL 7.7, Samba 4.9.1 [root at vnhprerhds01 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.7 (Maipo) [root at vnhprerhds01 ~]# smbclient -V Version 4.9.1 [root at vnhprerhds01 ~]# smbclient -W "${d}" -U "${u}" "${s}" "${p}" Try "help" to get a list of
2016 Oct 26
0
[Announce] Samba 4.5.1 Available for Download
...does not remove old links. o Björn Baumbach <bb at sernet.de> * BUG 8618: s3-printing: Fix migrate printer code. o Ralph Boehme <slow at samba.org> * BUG 12256: s3/smbd: In call_trans2qfilepathinfo call lstat when dealing with posix pathnames. * BUG 12261: s3/smbd: Set FILE_ATTRIBUTE_DIRECTORY as necessary. o Günther Deschner <gd at samba.org> * BUG 12285: "DriverVersion" registry backend parsing incorrect in spoolss. o David Disseldorp <ddiss at samba.org> * BUG 12144: smbd/ioctl: Match WS2016 ReFS get compression behaviour. o Amitay Isaacs <amitay a...
2016 Oct 26
0
[Announce] Samba 4.5.1 Available for Download
...does not remove old links. o Björn Baumbach <bb at sernet.de> * BUG 8618: s3-printing: Fix migrate printer code. o Ralph Boehme <slow at samba.org> * BUG 12256: s3/smbd: In call_trans2qfilepathinfo call lstat when dealing with posix pathnames. * BUG 12261: s3/smbd: Set FILE_ATTRIBUTE_DIRECTORY as necessary. o Günther Deschner <gd at samba.org> * BUG 12285: "DriverVersion" registry backend parsing incorrect in spoolss. o David Disseldorp <ddiss at samba.org> * BUG 12144: smbd/ioctl: Match WS2016 ReFS get compression behaviour. o Amitay Isaacs <amitay a...
2020 Aug 24
2
smbclient mask command seems not to work the same way with recurse ON for mget and mput
...a file should be operated on. > ********************************************************************/ > > static bool do_this_one(struct file_info *finfo) > { > if (!finfo->name) { > return false; > } > > if (finfo->attr & FILE_ATTRIBUTE_DIRECTORY) { > return true; > } > > if (*client_get_fileselection() && > !mask_match(finfo->name,client_get_fileselection(),false)) { > DEBUG(3,("mask_match %s failed\n", finfo->name)); >...