diff options
author | Jeremy Allison <jra@samba.org> | 2004-09-26 06:27:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:48 -0500 |
commit | eb9a09954b97f78768f07cbb921c05b06321d5ec (patch) | |
tree | e16035716a5fbae35984a8478a74e3a2a4780f5c /source3/smbd | |
parent | 761dfdabfa306dd8044761b294c5a5f957f5119e (diff) | |
download | samba-eb9a09954b97f78768f07cbb921c05b06321d5ec.tar.gz samba-eb9a09954b97f78768f07cbb921c05b06321d5ec.tar.bz2 samba-eb9a09954b97f78768f07cbb921c05b06321d5ec.zip |
r2651: Added 'stat' command to smbclient to exercise the UNIX_FILE_BASIC
info level. Outputs data on the file in the same format the the
stat command in Linux. Should be useful to people wanting to learn
how to parse the UNIX extension output.
Yes I will add the docs later :-).
Jeremy.
(This used to be commit b25cc596417d29815814c3968ac2627bf59ffc0b)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/trans2.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index a7bc2efb4a..825481984d 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -757,32 +757,6 @@ static uint32 unix_filetype(mode_t mode) } /**************************************************************************** - Return the major devicenumber for UNIX extensions. -****************************************************************************/ - -static uint32 unix_dev_major(SMB_DEV_T dev) -{ -#if defined(HAVE_DEVICE_MAJOR_FN) - return (uint32)major(dev); -#else - return (uint32)(dev >> 8); -#endif -} - -/**************************************************************************** - Return the minor devicenumber for UNIX extensions. -****************************************************************************/ - -static uint32 unix_dev_minor(SMB_DEV_T dev) -{ -#if defined(HAVE_DEVICE_MINOR_FN) - return (uint32)minor(dev); -#else - return (uint32)(dev & 0xff); -#endif -} - -/**************************************************************************** Map wire perms onto standard UNIX permissions. Obey share restrictions. ****************************************************************************/ |