]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(SAME_INODE): Remove definition.
authorJim Meyering <jim@meyering.net>
Sun, 12 Mar 2006 21:59:29 +0000 (21:59 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 12 Mar 2006 21:59:29 +0000 (21:59 +0000)
Include "same-inode.h", instead.

lib/chdir-safer.c

index b41123014c8863388b0f25e6ff98665a27954dac..5c313bcab9eb3829f8f2121e32701a249e3eb74a 100644 (file)
@@ -30,6 +30,7 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include "same-inode.h"
 
 #ifndef O_DIRECTORY
 # define O_DIRECTORY 0
 # define O_NOFOLLOW 0
 #endif
 
-#define SAME_INODE(Stat_buf_1, Stat_buf_2) \
-  ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
-   && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
-
 /* Like chdir, but fail if DIR is a symbolic link to a directory (or
    similar funny business), or if DIR is not readable.  This avoids a
    minor race condition between when a directory is created or statted