Subversion Repositories public

Rev

Rev 69 | Rev 75 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69 Rev 73
Line 104... Line 104...
104
{
104
{
105
  fprintf(stderr, "removing table for user '%s'\n", rUser.c_str());
105
  fprintf(stderr, "removing table for user '%s'\n", rUser.c_str());
106
 
106
 
107
  std::string tp(IncronTab::GetUserTablePath(rUser));
107
  std::string tp(IncronTab::GetUserTablePath(rUser));
108
 
108
 
109
  if (unlink(tp.c_str()) != 0 && errno != ENOENT) {
109
  if (unlink(tp.c_str()) != 0) {
-
 
110
    if (errno == ENOENT) {
-
 
111
      fprintf(stderr, "table for user '%s' does not exist\n", rUser.c_str());
-
 
112
      return true;
-
 
113
    }
-
 
114
    else {
110
    fprintf(stderr, "cannot remove table for user '%s': %s\n", rUser.c_str(), strerror(errno));
115
      fprintf(stderr, "cannot remove table for user '%s': %s\n", rUser.c_str(), strerror(errno));
111
    return false;
116
      return false;
-
 
117
    }
112
  }
118
  }
113
 
119
-
 
120
  fprintf(stderr, "table for user '%s' successfully removed\n", rUser.c_str());  
114
  return true;
121
  return true;
115
}
122
}
116
123
117
/// Lists an user table.
124
/// Lists an user table.
118
/**
125
/**