mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
Do not use "/bin/sh" to run external commands.
Picocom no longer uses /bin/sh to run external commands for file-transfer operations. Parsing the command line and spliting it into arguments is now performed internally by picocom, using quoting rules very similar to those of the Unix shell. Hopefully, this makes it impossible to inject shell-commands when supplying filenames or extra arguments to the send- and receive-file commands.
This commit is contained in:
4
Makefile
4
Makefile
@ -33,12 +33,12 @@ CPPFLAGS += -DSEND_RECEIVE_HISTFILE=\"$(SEND_RECEIVE_HISTFILE)\" \
|
||||
picocom : linenoise-1.0/linenoise.o
|
||||
linenoise-1.0/linenoise.o : linenoise-1.0/linenoise.c linenoise-1.0/linenoise.h
|
||||
|
||||
|
||||
picocom : picocom.o term.o
|
||||
picocom : picocom.o term.o split.o
|
||||
# $(LD) $(LDFLAGS) -o $@ $+ $(LDLIBS)
|
||||
|
||||
picocom.o : picocom.c term.h
|
||||
term.o : term.c term.h
|
||||
split.o : split.c split.h
|
||||
|
||||
|
||||
doc : picocom.8 picocom.8.html picocom.8.ps
|
||||
|
Reference in New Issue
Block a user