8000 Minor QoL fixes by gpotter2 · Pull Request #4750 · secdev/scapy · GitHub
[go: up one dir, main page]

Skip to content

Minor QoL fixes #4750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2025
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
0