diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-04-29 12:41:27 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-04-29 16:38:14 +1000 |
commit | 6021af4fd38d2a712dca42a3cacf8537007fd160 (patch) | |
tree | 23673e8e5aa8f75c3b5635957dc92231f81fd2c1 /source3/lib | |
parent | 724915f721819705c7cf5c850a24b32f815c07e3 (diff) | |
download | samba-6021af4fd38d2a712dca42a3cacf8537007fd160.tar.gz samba-6021af4fd38d2a712dca42a3cacf8537007fd160.tar.bz2 samba-6021af4fd38d2a712dca42a3cacf8537007fd160.zip |
libcli/smb Move attrib_string in common
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index d908ea86f0..8805197f2d 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -295,26 +295,6 @@ SMB_OFF_T get_file_size(char *file_name) } /******************************************************************* - Return a string representing an attribute for a file. -********************************************************************/ - -char *attrib_string(TALLOC_CTX *mem_ctx, uint16 mode) -{ - fstring attrstr; - - attrstr[0] = 0; - - if (mode & FILE_ATTRIBUTE_VOLUME) fstrcat(attrstr,"V"); - if (mode & FILE_ATTRIBUTE_DIRECTORY) fstrcat(attrstr,"D"); - if (mode & FILE_ATTRIBUTE_ARCHIVE) fstrcat(attrstr,"A"); - if (mode & FILE_ATTRIBUTE_HIDDEN) fstrcat(attrstr,"H"); - if (mode & FILE_ATTRIBUTE_SYSTEM) fstrcat(attrstr,"S"); - if (mode & FILE_ATTRIBUTE_READONLY) fstrcat(attrstr,"R"); - - return talloc_strdup(mem_ctx, attrstr); -} - -/******************************************************************* Show a smb message structure. ********************************************************************/ |