diff options
author | Tom Gundersen <teg@jklm.no> | 2015-06-16 16:22:16 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-06-16 16:23:13 +0200 |
commit | 636aabc272103aec02c09c3e12c997ce44b60949 (patch) | |
tree | ab47cc0c2adba892404ce4034a48839317363ea2 /src | |
parent | 9ef41ffeec0a677f0c8006b17e5ff1c8434418a3 (diff) |
tmpfiles: silently ignore failed removal of btrfs submount from non-dir
This fixes:
Jun 16 16:00:20 tomegun-x2402 systemd-tmpfiles[233]: rm_rf(/var/lib/machines/.#fedora.lck): Not a directory
Jun 16 16:00:20 tomegun-x2402 systemd-tmpfiles[233]: rm_rf(/var/lib/machines/.#Fedora-Cloud-Base-20141203-21.x86_64.raw.lck): Not a directory
Diffstat (limited to 'src')
-rw-r--r-- | src/basic/rm-rf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/rm-rf.c b/src/basic/rm-rf.c index bafd483be2..dbbe817684 100644 --- a/src/basic/rm-rf.c +++ b/src/basic/rm-rf.c @@ -182,7 +182,7 @@ int rm_rf(const char *path, RemoveFlags flags) { if (r >= 0) return r; - if (r != -ENOTTY && r != -EINVAL) + if (r != -ENOTTY && r != -EINVAL && r != -ENOTDIR) return r; /* Not btrfs or not a subvolume */ |