chiark / gitweb /
Prep v239: Unmask inotify_add_watch_fd()
authorSven Eden <yamakuzure@gmx.net>
Thu, 23 Aug 2018 06:27:14 +0000 (08:27 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/basic/fs-util.c
src/basic/fs-util.h

index a82d3a14eb22cde90b6711acf8f142d883f76722..562fe827725cec351c023465a2b4b0a52545d7c0 100644 (file)
@@ -589,7 +589,6 @@ int unlink_or_warn(const char *filename) {
         return 0;
 }
 
-#if 0 /// UNNEEDED by elogind
 int inotify_add_watch_fd(int fd, int what, uint32_t mask) {
         char path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
         int r;
@@ -603,7 +602,6 @@ int inotify_add_watch_fd(int fd, int what, uint32_t mask) {
 
         return r;
 }
-#endif // 0
 
 static bool safe_transition(const struct stat *a, const struct stat *b) {
         /* Returns true if the transition from a to b is safe, i.e. that we never transition from unprivileged to
index 940853f424c105587b3c0f829d00760d3a742e33..c7d831f50dbd1c68422933cd412850398f67d998 100644 (file)
@@ -76,9 +76,7 @@ union inotify_event_buffer {
         uint8_t raw[INOTIFY_EVENT_MAX];
 };
 
-#if 0 /// UNNEEDED by elogind
 int inotify_add_watch_fd(int fd, int what, uint32_t mask);
-#endif // 0
 
 enum {
         CHASE_PREFIX_ROOT = 1 << 0, /* If set, the specified path will be prefixed by the specified root before beginning the iteration */