chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
654c2d4
)
tmpfiles: compare return against correct errno
author
Dave Reisner
<dreisner@archlinux.org>
Sun, 12 Oct 2014 00:35:06 +0000
(20:35 -0400)
committer
Dave Reisner
<dreisner@archlinux.org>
Mon, 13 Oct 2014 01:41:57 +0000
(21:41 -0400)
name_to_handle_at returns -EOPNOTSUPP, not -ENOTSUP.
src/tmpfiles/tmpfiles.c
patch
|
blob
|
history
diff --git
a/src/tmpfiles/tmpfiles.c
b/src/tmpfiles/tmpfiles.c
index dafb9aee2f7e56be1c3a94d90c99206731d45822..8108b4304298ca6c18b4374ffc2d481179ccfb7c 100644
(file)
--- a/
src/tmpfiles/tmpfiles.c
+++ b/
src/tmpfiles/tmpfiles.c
@@
-259,7
+259,7
@@
static int dir_is_mount_point(DIR *d, const char *subdir) {
/* got only one handle; assume different mount points if one
* of both queries was not supported by the filesystem */
- if (r_p == -ENOSYS || r_p == -E
NOTSUP || r == -ENOSYS || r == -ENOTSU
P)
+ if (r_p == -ENOSYS || r_p == -E
OPNOTSUPP || r == -ENOSYS || r == -EOPNOTSUP
P)
return true;
/* return error */