stream-unix: Use rundir as root for relative paths.
authorPavithra Ramesh <paramesh@vmware.com>
Fri, 8 Feb 2013 20:37:18 +0000 (12:37 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 11 Feb 2013 19:18:58 +0000 (11:18 -0800)
commit2c487bc808ba6a4a297523f2c6b78ca3e358073a
tree821885e87f4784c887cd0b7b3ad91ced8d8ab9a0
parent1f3c5efcc6dc4ff09aaab6463462cbfe5d8bfb87
stream-unix: Use rundir as root for relative paths.

Until now, "unix:" and "punix:" paths that are not absolute have
been considered relative to the current working directory.  It
is more useful to consider them relative to the rundir, so this
commit makes that change to the C and Python implementations of
the stream code.

This commit also relaxes the whitelist check in the bridge code
so that any name that does not contain a "/" is considered OK.

Signed-off-by: Pavithra Ramesh <paramesh@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
12 files changed:
lib/stream-unix.c
python/ovs/stream.py
tests/jsonrpc-py.at
tests/jsonrpc.at
tests/ovsdb-execution.at
tests/ovsdb-idl.at
tests/ovsdb-macros.at
tests/ovsdb-monitor.at
tests/ovsdb-server.at
tests/ovsdb-tool.at
tests/vconn.at
vswitchd/bridge.c