- Timestamp:
- Apr 29, 2008, 12:02:53 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/Parameter.cc
r629 r631 164 164 // Checking that targetdir_ exists and retrieve the absolute path 165 165 // to targetdir_ 166 if (chdir(targetdir_.value().c_str())) 167 throw runtime_error(string("svndigest: Target directory (") + 168 targetdir_.value() + ") access failed."); 169 targetdir_.value() = pwd(); 170 // Checking write permissions for targetdir_ 171 if (access_rights(targetdir_.value(),"w")) 172 throw runtime_error(string("svndigest: No write permission on target ") + 173 "directory (" + targetdir_.value() +")."); 166 if (report()) { 167 if (chdir(targetdir_.value().c_str())) 168 throw runtime_error(string("svndigest: Target directory (") + 169 targetdir_.value() + ") access failed."); 170 targetdir_.value() = pwd(); 171 // Checking write permissions for targetdir_ 172 if (access_rights(targetdir_.value(),"w")) 173 throw runtime_error(string("svndigest: No write permission on target ") + 174 "directory (" + targetdir_.value() +")."); 175 } 174 176 175 177 // return back to cwd
Note: See TracChangeset
for help on using the changeset viewer.