]> diplodocus.org Git - nmh/commit
uip/mhstoresbr.c: Fix single-character nmh-storage bug.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 14 May 2017 11:53:33 +0000 (12:53 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 14 May 2017 11:53:33 +0000 (12:53 +0100)
commit5c4ca1ed9df0ec985e53e8c759208d5c65660422
tree07bddbd929959e5a8779fc00d5a04c93bc54a96d
parentab554144a135978aa7532b4a598599425332033f
uip/mhstoresbr.c: Fix single-character nmh-storage bug.

If the profile component nmh-storage was a single character, e.g. the
relative directory `d', then it would be dropped from the output path so
instead of `d/foo' being written, `/foo' would probably fail.  I think
this was due to a faulty check for nmh-storage being `/'.  Add a test
for a non-/ single-character nmh-storage.
test/mhstore/test-mhstore
uip/mhstoresbr.c