]> arthur.barton.de Git - bup.git/commit - lib/bup/metadata.py
Always fall back to socket()/bind() when os.mknod(...S_IFSOCK) fails.
authorRob Browning <rlb@defaultvalue.org>
Mon, 16 Sep 2013 17:56:27 +0000 (12:56 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 16 Sep 2013 17:56:29 +0000 (12:56 -0500)
commit168a333164c4107280cb0f2184a5dee6b7e64228
tree292a2a6ec74653184a02696baf9ebbf9a5e58ed5
parent2b1209379c2f6958755f4dc6509ff17403d64630
Always fall back to socket()/bind() when os.mknod(...S_IFSOCK) fails.

Previously bup would use socket()/bind() instead of os.mknod(... |
stat.S_IFSOCK) on Cygwin, but this issue isn't Cygwin specific.
Remove the platform conditionalization, and fall back to
socket()/bind() any time mknod() fails with EINVAL.

Thanks to Robert Edmonds <edmonds@debian.org> for reporting the
relevant failure on a Debian kFreeBSD buildd.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py