summaryrefslogtreecommitdiff
path: root/source/smbd/trans2.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-24 08:08:05 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-24 08:08:05 +0000
commit2565ccf9de9d5e80fdb5bcadbc7130faba386d95 (patch)
tree5b5846e0b28aa29db5c410336f8e258994d85423 /source/smbd/trans2.c
parent9d863fb1681a5b03696552e1d93fe339b4bae455 (diff)
downloadsamba-2565ccf9de9d5e80fdb5bcadbc7130faba386d95.tar.gz
volker was concerned about unique inode numbers and smbsh. This set of
changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before.
Diffstat (limited to 'source/smbd/trans2.c')
-rw-r--r--source/smbd/trans2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 44e9d499e21..f0bd458798f 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -1432,6 +1432,7 @@ static int call_trans2qfilepathinfo(connection_struct *conn,
CVAL(pdata,20) = 0;
CVAL(pdata,21) = (mode&aDIR)?1:0;
pdata += 24;
+ SINO_T(pdata,0,(SMB_INO_T)sbuf.st_ino);
pdata += 8; /* index number */
pdata += 4; /* EA info */
if (mode & aRONLY)