Skip to content

Commit

Permalink
Merge pull request #34 from p0dalirius/fix-pwd-when-changing-share
Browse files Browse the repository at this point in the history
[bugfix] PWD stays the same when changing share
  • Loading branch information
p0dalirius authored Jun 16, 2024
2 parents d5c0c48 + 840c209 commit bf9b52a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion smbclientng/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


def parseArgs():
print(""" _ _ _ _
print(r""" _ _ _ _
___ _ __ ___ | |__ ___| (_) ___ _ __ | |_ _ __ __ _
/ __| '_ ` _ \| '_ \ / __| | |/ _ \ '_ \| __|____| '_ \ / _` |
\__ \ | | | | | |_) | (__| | | __/ | | | ||_____| | | | (_| |
Expand Down
1 change: 1 addition & 0 deletions smbclientng/core/SMBSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,7 @@ def set_share(self, shareName):
if shareName.lower() in self.available_shares.keys():
# Doing this in order to keep the case of the share adevertised by the remote machine
self.smb_share = self.available_shares[shareName.lower()]["name"]
self.smb_cwd = ""
# Connects the tree
self.smb_tree_id = self.smbClient.connectTree(self.smb_share)
else:
Expand Down

0 comments on commit bf9b52a

Please sign in to comment.