chiark / gitweb /
Prep v239: Unmask inotify_add_watch_fd()
[elogind.git] / src / basic / fs-util.c
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