diff options
-rw-r--r-- | setnsfpn.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/setnsfpn.cpp b/setnsfpn.cpp index 9fe555c..b129858 100644 --- a/setnsfpn.cpp +++ b/setnsfpn.cpp @@ -123,10 +123,12 @@ static int setnsfpn(const char *path, size_t before, Recurse recurse) { return -1; case DT_DIR: - setnsfpn(sub, both, RecurseYes); + if (setnsfpn(sub, both, RecurseYes) != 0) + return -1; break; case DT_REG: - setnsfpn(sub, both, RecurseNo); + if (setnsfpn(sub, both, RecurseNo) != 0) + return -1; break; } } |