Skip to content
Success

Changes

Summary

  1. pcap-server: Resolve real path of pcap file before opening (details)
Commit a3a89be1031b0a818c09fae519d16a5100b30ce4 by Pau Espin Pedrol
pcap-server: Resolve real path of pcap file before opening

This means we always end up with a canonicalized absolute path.

While at it, also valdiate that we can indeed resolve the path (eg. it
exists and is reachable with current process permissions) during
startup.

It is preferrable to resolve it everytime a file is opened, this allows
the user to eg. change the base-path to a different symlink it they wish
to change the base-path for new pcaps without restarting osmo-pcap.

Change-Id: I8d161010dc8b480dd4cf90e19ca28a77914a50ad
The file was modifiedsrc/osmo_server_vty.c
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedsrc/osmo_server_network.c