diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-09 15:38:42 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-09 15:38:42 +0000 |
commit | 41d0052d19b44474b09b8066838c2479d9788d83 (patch) | |
tree | e691db3cf597e115e4c5fa1c2f447ed11fddb42b /libs/ardour/audiosource.cc | |
parent | 8177e85bf915ddba427024423450c9472cf3a490 (diff) |
remove all use of access(2) (this was done a bit stupidly, we could have used g_access)
git-svn-id: svn://localhost/ardour2/branches/3.0@9340 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audiosource.cc')
-rw-r--r-- | libs/ardour/audiosource.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index b993a093b5..ac98837183 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -197,7 +197,7 @@ AudioSource::rename_peakfile (string newpath) string oldpath = peakpath; - if (access (oldpath.c_str(), F_OK) == 0) { + if (Glib::file_test (oldpath, Glib::FILE_TEST_EXISTS)) { if (rename (oldpath.c_str(), newpath.c_str()) != 0) { error << string_compose (_("cannot rename peakfile for %1 from %2 to %3 (%4)"), _name, oldpath, newpath, strerror (errno)) << endmsg; return -1; |