checkForRace(): removed as unused
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 19 Aug 2004 14:29:25 +0000 (14:29 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 19 Aug 2004 14:29:25 +0000 (14:29 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1671 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/fstool.c

index d493831..e5ceae2 100644 (file)
@@ -42,29 +42,6 @@ struct Arguments const *             global_args = 0;
 
 int wrapper_exit_code = 1;
 
-bool
-checkForRace(int fd, char const * name, struct stat const *exp_st)
-{
-  struct stat          st;
-  
-  if (fstat(fd, &st)==-1) {
-    perror("fstat()");
-    return false;
- }
-
-  if (st.st_dev  != exp_st->st_dev ||
-      st.st_ino  != exp_st->st_ino ||
-      st.st_mode != exp_st->st_mode) {
-    close(fd);
-    WRITE_MSG(2, "race while visiting '");
-    WRITE_STR(2, name);
-    WRITE_MSG(2, "'\n");
-    exit(2);
-  }
-
-  return true;
-}
-
 inline static bool
 isSpecialDir(char const *d)
 {