Skip to content

Commit b35e195

Browse files
committed
Don't replace C: in the path
1 parent 9196c32 commit b35e195

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/helpers/pfx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ def pfx_auth(self):
503503
return None
504504

505505
username = self.args.username[0]
506-
log_ccache = os.path.normpath(os.path.expanduser(f"{NXC_PATH}/logs/{self.hostname}_{self.host}_{datetime.datetime.now().strftime('%Y-%m-%d_%H%M%S')}-{username}.ccache".replace(":", "-")))
506+
timestamp = datetime.datetime.now().strftime("%Y-%m-%d_%H%M%S").replace(":", "-")
507+
log_ccache = os.path.normpath(os.path.expanduser(f"{NXC_PATH}/logs/{self.hostname}_{self.host}_{timestamp}-{username}.ccache"))
507508

508509
# Request a TGT with the cert data
509510
req = ini.build_asreq(self.domain, username)

0 commit comments

Comments
 (0)