diff options
author | Jim Meyering <jim@meyering.net> | 2006-03-12 21:59:29 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-03-12 21:59:29 +0000 |
commit | 1ccf35a5e376233ed8f7d58b4481fcc8dcb2d226 (patch) | |
tree | 7edb09571c9bfdcd22808a6a01aac812776d4c01 | |
parent | a0d7555ba01e5960f7e46886bfdc36f575d58722 (diff) | |
download | coreutils-1ccf35a5e376233ed8f7d58b4481fcc8dcb2d226.tar.xz |
(SAME_INODE): Remove definition.
Include "same-inode.h", instead.
-rw-r--r-- | lib/chdir-safer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chdir-safer.c b/lib/chdir-safer.c index b41123014..5c313bcab 100644 --- a/lib/chdir-safer.c +++ b/lib/chdir-safer.c @@ -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 @@ -39,10 +40,6 @@ # 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 |