Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scapy/layers/smbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from scapy.arch import get_if_addr
from scapy.automaton import ATMT, Automaton
from scapy.config import conf
from scapy.consts import WINDOWS
from scapy.error import log_runtime, log_interactive
from scapy.volatile import RandUUID

Expand Down Expand Up @@ -1058,7 +1059,7 @@ def lookup_file(self, fname, durable_handle=None, create=False, createOptions=No
# Note: symbolic links are currently unsupported.
if root not in path.parents and path != root:
raise FileNotFoundError
if path.is_reserved():
if WINDOWS and path.is_reserved():
raise FileNotFoundError
if not path.exists():
if create and createOptions:
Expand Down
2 changes: 2 additions & 0 deletions scapy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,8 @@ def ptpython_configure(repl):
cfg.InteractiveShellEmbed.term_title = False
cfg.HistoryAccessor.hist_file = conf.histfile
cfg.InteractiveShell.banner1 = banner
if conf.verb < 2:
cfg.InteractiveShellEmbed.enable_tip = False
# configuration can thus be specified here.
_kwargs = {}
if conf.interactive_shell == "ptipython":
Expand Down
Loading